|
Oracle Communications Services Gatekeeper OAM Java API Reference 5.0 E21718-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Exposes connection info of remote hosts (aka, network node / smsc) and listen address details of ServerService
Field Summary | |
static boolean |
validationEnabled Defines if the ConnectInfoManager validate the parameters when doing operation. |
Method Summary | |
Credential |
addXParamToCredentialEntry(String credentialId, String xParamName, String xParamValue) Add extra parameter values to credential mapping - This method can be used to add any 'name - value' pair. |
Map |
createOrUpdateCredentialMap(String pluginInstanceId, String appId, String credentialId) Creates a new entry or updates an existing entry in the credential map which is associated with the given pluginInstanceId |
void |
createOrUpdateListenAddress(String protocol, String host, int port, String targets) Add a listen address configuration. |
void |
createOrUpdateLocalHostAddress(String pluginInstanceId, String localHost, int localPort, String targets) |
void |
createOrUpdateRemoteHostAddress(String pluginInstanceId, String remoteHost, int remotePort) Create or Update the connection details to the remote host to which the plugin should connect to. |
Credential |
createOrUpdateUserPasswordCredentialEntry(String credentialId, String remoteUser, String remotePassword) Creates or updates the user and password parameters associated with the specified credentialId. |
Set |
getAllListenAddress(String protocol) Returns a list of ServerAddress configured for this domain for the given protocol. |
ConnectInfo |
getConnectInfo(String pluginInstanceId) Returns the ConnectInfo of the remote host (SMSC / network node). |
Set |
getListenAddressForCurrentServer(String protocol) Returns a list of ServerAddress configured for the current server for the given protocol This is a convenience method for the caller to get a subset of configured listen address which are targeted to the current server |
boolean |
isValidationEnabled() Returns a boolean indicating whether validation is enabled Validation is enabled by default |
Map |
listAllCredentialEntries() Gives a map of credentialId and the associated Credential objects in the configuration |
void |
removeConnectInfo(String pluginInstanceId) Remove the remote host's connect address, local connect address along with credential mapping for the given pluginInstanceId |
void |
removeCredentialEntry(String credentialId) Removes the credential entry |
void |
removeCredentialMap(String pluginInstanceId, String appId) Remove the credential association between the given appId and the associated credential if any from the given pluginInstanceId's connect info configuration |
void |
removeListenAddress(String protocol, String host, int port) Removes this listen address configuration from all the targets |
void |
removeLocalHostAddress(String pluginInstanceId) Remove the local host address info associated with this pluginInstanceId |
Credential |
removeXParamFromCredentialEntry(String credentialId, String xParamName) Removes the extra parameter associated with the given credentialId. |
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 plugin instance id before creating the configuration. |
Field Detail |
public static final boolean validationEnabled
Method Detail |
public Credential addXParamToCredentialEntry(String credentialId, String xParamName, String xParamValue) throws ManagementException
credentialId
- - Unique identifier for the credential in the configurationxParamName
-xParamValue
-ManagementException
public Map createOrUpdateCredentialMap(String pluginInstanceId, String appId, String credentialId) throws ManagementException
pluginInstanceId
-appId
- - application instance Id/ocsg user who needs to be mapped to the remote hostcredentialId
- - 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 thrownManagementException
public void createOrUpdateListenAddress(String protocol, String host, int port, String targets) throws ManagementException
protocol
- - Name of the protocol, like, ucp or smpphost
- - Host name or IP address.port
- - port number to bind totargets
- - server names or cluster name - comma separated. If left blank, this config will be applicable to all the targets in the cluster.ManagementException
public void createOrUpdateLocalHostAddress(String pluginInstanceId, String localHost, int localPort, String targets) throws ManagementException
pluginInstanceId
-localHost
-localPort
- - this will be used as the starting port in case where multiple connections needs 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.ManagementException
public void createOrUpdateRemoteHostAddress(String pluginInstanceId, String remoteHost, int remotePort) throws ManagementException
pluginInstanceId
-remoteHost
-remotePort
-ManagementException
public Credential createOrUpdateUserPasswordCredentialEntry(String credentialId, String remoteUser, String remotePassword) throws ManagementException
credentialId
- - Unique identifier for the credential in the configurationremoteUser
- Value of the attribute 'user'remotePassword
- Value of the attribute 'password'ManagementException
public Set getAllListenAddress(String protocol) throws ManagementException
protocol
-ManagementException
public ConnectInfo getConnectInfo(String pluginInstanceId) throws ManagementException
pluginInstanceId
-ManagementException
public Set getListenAddressForCurrentServer(String protocol) throws ManagementException
protocol
-ManagementException
public boolean isValidationEnabled()
public Map listAllCredentialEntries() throws ManagementException
ManagementException
public void removeConnectInfo(String pluginInstanceId) throws ManagementException
pluginInstanceId
-ManagementException
public void removeCredentialEntry(String credentialId) throws ManagementException
credentialId
- - Unique identifier for the credential in the configurationManagementException
public void removeCredentialMap(String pluginInstanceId, String appId) throws ManagementException
pluginInstanceId
-appId
-ManagementException
public void removeListenAddress(String protocol, String host, int port) throws ManagementException
protocol
-host
-port
-ManagementException
public void removeLocalHostAddress(String pluginInstanceId) throws ManagementException
pluginInstanceId
-ManagementException
public Credential removeXParamFromCredentialEntry(String credentialId, String xParamName) throws ManagementException
credentialId
-xParamName
-ManagementException
public void setValidationEnabled(boolean enabled)
enabled
- True if plugin instance validation should be done
|
Oracle Communications Services Gatekeeper OAM Java API Reference 5.0 E21718-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |