Oracle Communications Services Gatekeeper OAM Java API Reference
7.0.0.1

E96580-01

oracle.ocsg.plugin.connection.management
Interface ConnectInfoManagerMBean


public interface ConnectInfoManagerMBean

Exposes connection info of remote hosts (network node or SMSC) and listen address details of ServerService.


Field Summary
static boolean validationEnabled
          If set to true, the Plug-in Manager validates the plug-in instance ID before the Connection Information Manager creates an entry for it in the credential map.
 
Method Summary
abstract  oracle.ocsg.plugin.connection.management.Credential addXParamToCredentialEntry(java.lang.String credentialId, java.lang.String xParamName, java.lang.String xParamValue)
          Adds extra parameter values to credential mapping.
abstract  java.util.Map createOrUpdateCredentialMap(java.lang.String pluginInstanceId, java.lang.String appId, java.lang.String credentialId)
          Creates a new entry or updates an existing entry in the credential map associated with the pluginInstanceId.
abstract  void createOrUpdateListenAddress(java.lang.String protocol, java.lang.String host, int port, java.lang.String targets)
          Adds a listen address configuration.
abstract  void createOrUpdateLocalHostAddress(java.lang.String pluginInstanceId, java.lang.String localHost, int localPort, java.lang.String targets)
          Adds a local host address or updates an existing entry.
abstract  void createOrUpdateRemoteHostAddress(java.lang.String pluginInstanceId, java.lang.String remoteHost, int remotePort)
          Creates or updates the connection details for the remote host to which the specified plug-in instance connects.
abstract  oracle.ocsg.plugin.connection.management.Credential createOrUpdateUserPasswordCredentialEntry(java.lang.String credentialId, java.lang.String remoteUser, java.lang.String remotePassword)
          Creates or updates the user and password parameters associated with the specified credentialId.
abstract  java.util.Set getAllListenAddress(java.lang.String protocol)
          Returns a list of ServerAddress configured for this domain for the given protocol.
abstract  oracle.ocsg.plugin.connection.management.ConnectInfo getConnectInfo(java.lang.String pluginInstanceId)
          Returns the ConnectInfo of the remote host (SMSC / network node) for the server on which this MBean resides.
abstract  java.util.Set getListenAddressForCurrentServer(java.lang.String protocol)
          Returns a list of ServerAddresses configured for the current server for the given protocol This is a convenience method for the caller to get a subset of configured listen addresses which are targeted to the current server.
abstract  boolean isValidationEnabled()
          Returns a boolean indicating whether validation is enabled.
abstract  java.util.Map listAllCredentialEntries()
          Gives a map of credentialIds and the associated Credential objects in the configuration.
abstract  void removeConnectInfo(java.lang.String pluginInstanceId)
          Removes the remote host's connect address, local connect address along with credential mapping for the given pluginInstanceId.
abstract  void removeCredentialEntry(java.lang.String credentialId)
          Removes the specified credential entry from the configuration.
abstract  void removeCredentialMap(java.lang.String pluginInstanceId, java.lang.String appId)
          Removes the credential association between the given appId and the associated credential, if any, from the given pluginInstanceId's connect info configuration.
abstract  void removeListenAddress(java.lang.String protocol, java.lang.String host, int port)
          Removes this listen address configuration from all the targets.
abstract  void removeLocalHostAddress(java.lang.String pluginInstanceId)
          Removes the local host address info associated with this pluginInstanceId.
abstract  oracle.ocsg.plugin.connection.management.Credential removeXParamFromCredentialEntry(java.lang.String credentialId, java.lang.String xParamName)
          Removes the extra parameter associated with the given credentialId.
abstract  void setValidationEnabled(boolean enabled)
          Setter to enable validation of targets and pluginInstanceIds.
 

Field Detail

validationEnabled

public static final boolean validationEnabled
If set to true, the Plug-in Manager validates the plug-in instance ID before the Connection Information Manager creates an entry for it in the credential map. It also validates the server names and cluster names targets passed in the targets parameters to the createOrUpdateListenAddress and createOrUpdateLocalHostAddress methods.

Scope: Cluster

See Also:
Constant Field Values
Method Detail

addXParamToCredentialEntry

public oracle.ocsg.plugin.connection.management.Credential addXParamToCredentialEntry(java.lang.String credentialId,
                                                                                      java.lang.String xParamName,
                                                                                      java.lang.String xParamValue)
                                                                               throws com.bea.wlcp.wlng.api.management.ManagementException
Adds extra parameter values to credential mapping. This method can be used to add any 'name - value' pair. For example, native UCP can use this operation to provide connection-specific windowing and heartbeat parameters.

Scope: Cluster

Parameters:
credentialId - - Unique identifier for the credential in the configuration.
xParamName - User-defined name for the parameter
xParamValue - Value of the parameter
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

createOrUpdateCredentialMap

public java.util.Map createOrUpdateCredentialMap(java.lang.String pluginInstanceId,
                                                 java.lang.String appId,
                                                 java.lang.String credentialId)
                                          throws com.bea.wlcp.wlng.api.management.ManagementException
Creates a new entry or updates an existing entry in the credential map associated with the pluginInstanceId. This method creates the association between a plug-in instance, an application instance, and a credential ID. For credential maps configured for use by native UCP, the appId must be a numeric string with a maximum length of 16 digits that maps to the OAdC field in the UCP openSession request.

Scope: Cluster

Parameters:
pluginInstanceId - the plugin instance id.
appId - - application instance ID/OCSG user who needs to be mapped to the remote host.
credentialId - - ID of an existing credential entry in the configuration. If this value is empty or null, the existing mapping if any for the given appId is removed. If this value doesn't match any of the existing credentialId, ManagementException will be thrown.
Returns:
Returns a map of appId to credentialId for this pluginInstanceId.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

createOrUpdateListenAddress

public void createOrUpdateListenAddress(java.lang.String protocol,
                                        java.lang.String host,
                                        int port,
                                        java.lang.String targets)
                                 throws com.bea.wlcp.wlng.api.management.ManagementException
Adds a listen address configuration. If this listen address is already present then its target list is changed to the new value passed with this call.

Scope: Cluster

Parameters:
protocol - - Name of the protocol, for example UCP or SMPP
host - - Host name or IP address. Defaults to localhost
port - - Port number to bind to.
targets - - Server names or cluster name - comma separated. If left blank, this config will be applicable to all the targets in the cluster.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

createOrUpdateLocalHostAddress

public void createOrUpdateLocalHostAddress(java.lang.String pluginInstanceId,
                                           java.lang.String localHost,
                                           int localPort,
                                           java.lang.String targets)
                                    throws com.bea.wlcp.wlng.api.management.ManagementException
Adds a local host address or updates an existing entry. A configured local host address is optional. When Services Gatekeeper connects to the remote network node, it uses the specified local host IP address/port combination to bind the socket on the Services Gatekeeper side of the connection. If the local host address is not configured, an ephemeral port is used. When multiple connections are established with a network element, the port set by this operation is used as the starting offset. When this operation is used to update an existing entry, the target list is changed to the new targets value passed by this call.

Scope: Cluster

Parameters:
pluginInstanceId - plugin instance id.
localHost - local host name.
localPort - - This will be used as the starting port in cases where multiple connections need to be opened to the remote host. The local port number will be incremented by 1 for additional connections.
targets - - server names or cluster name - comma separated. If left blank, this config will be applicable to all the targets in the cluster.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

createOrUpdateRemoteHostAddress

public void createOrUpdateRemoteHostAddress(java.lang.String pluginInstanceId,
                                            java.lang.String remoteHost,
                                            int remotePort)
                                     throws com.bea.wlcp.wlng.api.management.ManagementException
Creates or updates the connection details for the remote host to which the specified plug-in instance connects. A remote host address is required to establish a connection.

Scope: Cluster

Parameters:
pluginInstanceId - plugin instance id.
remoteHost - remote host name.
remotePort - remote host number.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

createOrUpdateUserPasswordCredentialEntry

public oracle.ocsg.plugin.connection.management.Credential createOrUpdateUserPasswordCredentialEntry(java.lang.String credentialId,
                                                                                                     java.lang.String remoteUser,
                                                                                                     java.lang.String remotePassword)
                                                                                              throws com.bea.wlcp.wlng.api.management.ManagementException
Creates or updates the user and password parameters associated with the specified credentialId.

Scope: Cluster

Parameters:
credentialId - - Unique identifier for the credential in the configuration.
remoteUser - Value of the attribute 'user'.
remotePassword - Value of the attribute 'password'.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

getAllListenAddress

public java.util.Set getAllListenAddress(java.lang.String protocol)
                                  throws com.bea.wlcp.wlng.api.management.ManagementException
Returns a list of ServerAddress configured for this domain for the given protocol.

Scope: Cluster

Parameters:
protocol - Name of the protocol, like UCP or SMPP.
Returns:
list of ServerAddresses configured for this domain for the given protocol.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

getConnectInfo

public oracle.ocsg.plugin.connection.management.ConnectInfo getConnectInfo(java.lang.String pluginInstanceId)
                                                                    throws com.bea.wlcp.wlng.api.management.ManagementException
Returns the ConnectInfo of the remote host (SMSC / network node) for the server on which this MBean resides. The ConnectInfo includes the remoteHost, remotePort, localHost, localPort and credentialMap. The localHost and localPort values are server-specific. The returned values are specific to the server where this MBean instance resides.

Scope: Cluster

Parameters:
pluginInstanceId - plugin instance id.
Returns:
the ConnectInfo of the remote host.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

getListenAddressForCurrentServer

public java.util.Set getListenAddressForCurrentServer(java.lang.String protocol)
                                               throws com.bea.wlcp.wlng.api.management.ManagementException
Returns a list of ServerAddresses configured for the current server for the given protocol This is a convenience method for the caller to get a subset of configured listen addresses which are targeted to the current server.

Scope: Cluster

Parameters:
protocol - Name of the protocol, like UCP or SMPP.
Returns:
list of ServerAddress.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

isValidationEnabled

public boolean isValidationEnabled()
Returns a boolean indicating whether validation is enabled. Validation is enabled by default.

Scope: Cluster

Returns:
True if validation is enabled, false if not.

listAllCredentialEntries

public java.util.Map listAllCredentialEntries()
                                       throws com.bea.wlcp.wlng.api.management.ManagementException
Gives a map of credentialIds and the associated Credential objects in the configuration.

Scope: Cluster

Returns:
Map containing all the credentialId to Credential mappings.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

removeConnectInfo

public void removeConnectInfo(java.lang.String pluginInstanceId)
                       throws com.bea.wlcp.wlng.api.management.ManagementException
Removes the remote host's connect address, local connect address along with credential mapping for the given pluginInstanceId.

Scope: Cluster

Parameters:
pluginInstanceId - plugin instance id.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

removeCredentialEntry

public void removeCredentialEntry(java.lang.String credentialId)
                           throws com.bea.wlcp.wlng.api.management.ManagementException
Removes the specified credential entry from the configuration.

Scope: Cluster

Parameters:
credentialId - - Unique identifier for the credential in the configuration.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

removeCredentialMap

public void removeCredentialMap(java.lang.String pluginInstanceId,
                                java.lang.String appId)
                         throws com.bea.wlcp.wlng.api.management.ManagementException
Removes the credential association between the given appId and the associated credential, if any, from the given pluginInstanceId's connect info configuration.

Scope: Cluster

Parameters:
pluginInstanceId - plugin instance id.
appId - application id.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

removeListenAddress

public void removeListenAddress(java.lang.String protocol,
                                java.lang.String host,
                                int port)
                         throws com.bea.wlcp.wlng.api.management.ManagementException
Removes this listen address configuration from all the targets.

Scope: Cluster

Parameters:
protocol - Name of the protocol, like UCP or SMPP.
host - host name.
port - port number.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

removeLocalHostAddress

public void removeLocalHostAddress(java.lang.String pluginInstanceId)
                            throws com.bea.wlcp.wlng.api.management.ManagementException
Removes the local host address info associated with this pluginInstanceId.

Scope: Cluster

Parameters:
pluginInstanceId - plugin instance id.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

removeXParamFromCredentialEntry

public oracle.ocsg.plugin.connection.management.Credential removeXParamFromCredentialEntry(java.lang.String credentialId,
                                                                                           java.lang.String xParamName)
                                                                                    throws com.bea.wlcp.wlng.api.management.ManagementException
Removes the extra parameter associated with the given credentialId.

Scope: Cluster

Parameters:
credentialId - credential id.
xParamName - parameter name.
Returns:
Credential associated with the credentialId.
Throws:
ManagementException.
com.bea.wlcp.wlng.api.management.ManagementException

setValidationEnabled

public void setValidationEnabled(boolean enabled)
Setter to enable validation of targets and pluginInstanceIds. If this flag is enabled, then PluginManagerMBean is used to check the validity of the plug-in instance id before creating the configuration. The server names are validated based on the domain configuration.

Scope: Cluster

Parameters:
enabled - True if plug-in instance validation should be done.

Oracle Communications Services Gatekeeper OAM Java API Reference
7.0.0.1

E96580-01

Copyright © 2008, 2018, Oracle and/or its affiliates. All rights reserved.