Class BRMConnectionConfiguration
java.lang.Object
java.util.Observable
oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
oracle.communication.brm.charging.appconfiguration.beans.connection.AbstractConnectionConfiguration
oracle.communication.brm.charging.appconfiguration.beans.connection.BRMConnectionConfiguration
- All Implemented Interfaces:
Cloneable,BRMConnectionConfigurationMBean,oracle.communication.brm.charging.appconfiguration.ChildConfigBean,oracle.communication.brm.charging.appconfiguration.ConfigurationBean,oracle.communication.brm.charging.util.directevolution.DEvolvable
public class BRMConnectionConfiguration
extends AbstractConnectionConfiguration
implements BRMConnectionConfigurationMBean, oracle.communication.brm.charging.appconfiguration.ChildConfigBean
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
CONFIG_CLASS, M_BEAN_CATEGORY, NAME, POF_IMPL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionoracle.communication.brm.charging.util.directevolution.DEvolvablebooleanCluster name of the child configuration MBean.Returns the port for connecting to BRM.Method for composing the connect string.Returns the wallet location where password is stored.Returns FailOver Connection URLsReturns BRM host name for connecting to BRM.The implementing class is needed for dynamic instantiation in abstract class.Returns the login name for connecting to BRM.intReturns the login type to connect to BRM, 1 indicates with password and 0 indicates no password.getName()Unique name of the child configuration MBean.intReturns number of connections configured for pooling.Returns the password(***) to display on jconsole.Returns protocol for communication with BRM.intReturns SSL enabled info.Returns wallet locationvoidgiveInitializerTo(oracle.communication.brm.charging.util.directevolution.DEvolvableHelper DEvolvableHelper) protected voidhandlePrintConfiguration(org.apache.logging.log4j.Logger logger) Method used by subclasses to dump their configuration settings to a log file.inthashCode()voidMethod used to persist and synchronize all app configuration beans to charging-settings.xml.voidsetClusterName(String clusterName) Cluster name of the child configuration MBean.voidSets the port used for connecting to BRM.voidsetEceWalletLocation(String walletLocation) Sets the Wallet LocationvoidsetFailOverConnectionUrls(String failOverConnectionUrls) String FailOver Connection URLsvoidsetHostName(String hostName) Sets BRM host name for connecting to BRM.voidsetLoginName(String loginName) Sets the login name for connecting to BRM.voidsetLoginType(int loginType) Sets the login type to connect to BRM, 1 indicates with password and 0 indicates no password.voidUnique name of the child configuration MBean.voidsetNumberOfConnections(int numberOfConnections) Sets number of connections configured for pooling.voidsetPassword(String password, String walletPassword) Sets the password used for connecting to BRM.voidsetProtocol(String protocol) Sets protocol for communication with BRM.voidsetSslEnabled(int sslEnabled) enable or disable SSLvoidString wallet locationMethod to test a connection after configurationMethods inherited from class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
broadcast, clone, getBeanId, getEvolutionData, getFilename, getImpl, getModifyingClusterName, getModifyingMemberId, printConfiguration, publish, publish, publishArrayItem, publishClearArray, publishRemoveArrayItem, registerBean, setBeanId, setEvolutionData, setFilename, setModifyingClusterName, toBinary, toString, unRegisterBeanMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
getBeanId, getFilename, getModifyingClusterName, getModifyingMemberId, printConfiguration, setBeanId, setFilename, setModifyingClusterNameMethods inherited from interface oracle.communication.brm.charging.util.directevolution.DEvolvable
clone, getEvolutionData, setEvolutionData
-
Field Details
-
POF_NAME
public static final int POF_NAME- See Also:
-
POF_HOST_NAME
public static final int POF_HOST_NAME- See Also:
-
POF_PROTOCOL
public static final int POF_PROTOCOL- See Also:
-
POF_CM_PORT
public static final int POF_CM_PORT- See Also:
-
POF_LOGIN_NAME
public static final int POF_LOGIN_NAME- See Also:
-
POF_NUMBER_OF_CONNECTIONS
public static final int POF_NUMBER_OF_CONNECTIONS- See Also:
-
POF_LOGIN_TYPE
public static final int POF_LOGIN_TYPE- See Also:
-
POF_SSL_ENABLED
public static final int POF_SSL_ENABLED- See Also:
-
POF_WALLET
public static final int POF_WALLET- See Also:
-
POF_FAIL_OVER_CONNECTION_URLS
public static final int POF_FAIL_OVER_CONNECTION_URLS- See Also:
-
POF_ECE_WALLET_LOCATION
public static final int POF_ECE_WALLET_LOCATION- See Also:
-
DEFAULT_NAME
- See Also:
-
DEFAULT_HOST_NAME
- See Also:
-
DEFAULT_PROTOCOL
- See Also:
-
DEFAULT_CM_PORT
- See Also:
-
DEFAULT_LOGIN_NAME
- See Also:
-
DEFAULT_NUMBER_OF_CONNECTIONS
public static final int DEFAULT_NUMBER_OF_CONNECTIONS- See Also:
-
DEFAULT_LOGIN_TYPE
public static final int DEFAULT_LOGIN_TYPE- See Also:
-
DEFAULT_SSL_ENABLED
public static final int DEFAULT_SSL_ENABLED- See Also:
-
DEFAULT_WALLET
- See Also:
-
DEFAULT_FAIL_OVER_CONNECTION_URLS
- See Also:
-
DEFAULT_ECE_WALLET_LOCATION
- See Also:
-
-
Constructor Details
-
BRMConnectionConfiguration
public BRMConnectionConfiguration()Default Constructor
-
-
Method Details
-
getEceWalletLocation
Description copied from interface:BRMConnectionConfigurationMBeanReturns the wallet location where password is stored.- Specified by:
getEceWalletLocationin interfaceBRMConnectionConfigurationMBean- Returns:
- wallet location
-
setEceWalletLocation
Description copied from interface:BRMConnectionConfigurationMBeanSets the Wallet Location- Specified by:
setEceWalletLocationin interfaceBRMConnectionConfigurationMBean- Parameters:
walletLocation- ECE Wallet location
-
getName
Description copied from interface:oracle.communication.brm.charging.appconfiguration.ChildConfigBeanUnique name of the child configuration MBean. This name will be used to construct the Mbean name- Specified by:
getNamein interfaceoracle.communication.brm.charging.appconfiguration.ChildConfigBean- Returns:
- name of the child bean
-
setName
Description copied from interface:oracle.communication.brm.charging.appconfiguration.ChildConfigBeanUnique name of the child configuration MBean. This name will be used to construct the Mbean name- Specified by:
setNamein interfaceoracle.communication.brm.charging.appconfiguration.ChildConfigBean- Parameters:
name-
-
getClusterName
Description copied from interface:oracle.communication.brm.charging.appconfiguration.ChildConfigBeanCluster name of the child configuration MBean. This name will be used to construct the Mbean name- Specified by:
getClusterNamein interfaceoracle.communication.brm.charging.appconfiguration.ChildConfigBean- Returns:
- cluster name of the child bean
-
setClusterName
Description copied from interface:oracle.communication.brm.charging.appconfiguration.ChildConfigBeanCluster name of the child configuration MBean. This name will be used to construct the Mbean name- Specified by:
setClusterNamein interfaceoracle.communication.brm.charging.appconfiguration.ChildConfigBean- Parameters:
clusterName- cluster name of the child bean
-
getImplementingClass
Description copied from interface:oracle.communication.brm.charging.appconfiguration.ChildConfigBeanThe implementing class is needed for dynamic instantiation in abstract class.- Specified by:
getImplementingClassin interfaceoracle.communication.brm.charging.appconfiguration.ChildConfigBean- Returns:
- Implementing class
-
giveInitializerTo
public void giveInitializerTo(oracle.communication.brm.charging.util.directevolution.DEvolvableHelper DEvolvableHelper) - Specified by:
giveInitializerToin interfaceoracle.communication.brm.charging.util.directevolution.DEvolvable- Overrides:
giveInitializerToin classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-
getLoginName
Description copied from interface:BRMConnectionConfigurationMBeanReturns the login name for connecting to BRM.- Specified by:
getLoginNamein interfaceBRMConnectionConfigurationMBean- Returns:
- login name
-
setLoginName
Description copied from interface:BRMConnectionConfigurationMBeanSets the login name for connecting to BRM.- Specified by:
setLoginNamein interfaceBRMConnectionConfigurationMBean- Parameters:
loginName- the login name for connecting to BRM
-
getProtocol
Description copied from interface:BRMConnectionConfigurationMBeanReturns protocol for communication with BRM.- Specified by:
getProtocolin interfaceBRMConnectionConfigurationMBean- Returns:
- protocol.
-
setProtocol
Description copied from interface:BRMConnectionConfigurationMBeanSets protocol for communication with BRM.- Specified by:
setProtocolin interfaceBRMConnectionConfigurationMBean- Parameters:
protocol- protocol for communication with BRM
-
getPassword
Description copied from interface:BRMConnectionConfigurationMBeanReturns the password(***) to display on jconsole.- Specified by:
getPasswordin interfaceBRMConnectionConfigurationMBean- Returns:
- password(***)
-
getPasswordFromWallet
-
setPassword
Description copied from interface:BRMConnectionConfigurationMBeanSets the password used for connecting to BRM.- Specified by:
setPasswordin interfaceBRMConnectionConfigurationMBean- Parameters:
password- to be setwalletPassword- walletPassword which need to open the wallet
-
getHostName
Description copied from interface:BRMConnectionConfigurationMBeanReturns BRM host name for connecting to BRM.- Specified by:
getHostNamein interfaceBRMConnectionConfigurationMBean- Returns:
- host name
-
setHostName
Description copied from interface:BRMConnectionConfigurationMBeanSets BRM host name for connecting to BRM.- Specified by:
setHostNamein interfaceBRMConnectionConfigurationMBean- Parameters:
hostName- to be set
-
getCmPort
Description copied from interface:BRMConnectionConfigurationMBeanReturns the port for connecting to BRM.- Specified by:
getCmPortin interfaceBRMConnectionConfigurationMBean- Returns:
- cmPort
-
setCmPort
Description copied from interface:BRMConnectionConfigurationMBeanSets the port used for connecting to BRM.- Specified by:
setCmPortin interfaceBRMConnectionConfigurationMBean- Parameters:
cmPort- to be set
-
getLoginType
public int getLoginType()Description copied from interface:BRMConnectionConfigurationMBeanReturns the login type to connect to BRM, 1 indicates with password and 0 indicates no password.- Specified by:
getLoginTypein interfaceBRMConnectionConfigurationMBean- Returns:
- login type
-
setLoginType
public void setLoginType(int loginType) Description copied from interface:BRMConnectionConfigurationMBeanSets the login type to connect to BRM, 1 indicates with password and 0 indicates no password.- Specified by:
setLoginTypein interfaceBRMConnectionConfigurationMBean- Parameters:
loginType- the login type to connect to BRM
-
getNumberOfConnections
public int getNumberOfConnections()Description copied from interface:BRMConnectionConfigurationMBeanReturns number of connections configured for pooling.- Specified by:
getNumberOfConnectionsin interfaceBRMConnectionConfigurationMBean- Returns:
- int number of CM connections
-
setNumberOfConnections
public void setNumberOfConnections(int numberOfConnections) Description copied from interface:BRMConnectionConfigurationMBeanSets number of connections configured for pooling.- Specified by:
setNumberOfConnectionsin interfaceBRMConnectionConfigurationMBean- Parameters:
numberOfConnections- number of connections configured for pooling
-
getSslEnabled
public int getSslEnabled()Description copied from interface:BRMConnectionConfigurationMBeanReturns SSL enabled info.- Specified by:
getSslEnabledin interfaceBRMConnectionConfigurationMBean- Returns:
- int SSL enabled info
-
setSslEnabled
public void setSslEnabled(int sslEnabled) Description copied from interface:BRMConnectionConfigurationMBeanenable or disable SSL- Specified by:
setSslEnabledin interfaceBRMConnectionConfigurationMBean- Parameters:
sslEnabled- for SSL mode
-
getWallet
Description copied from interface:BRMConnectionConfigurationMBeanReturns wallet location- Specified by:
getWalletin interfaceBRMConnectionConfigurationMBean- Returns:
- String Wallet
-
setWallet
Description copied from interface:BRMConnectionConfigurationMBeanString wallet location- Specified by:
setWalletin interfaceBRMConnectionConfigurationMBean- Parameters:
wallet-
-
getFailOverConnectionUrls
Description copied from interface:BRMConnectionConfigurationMBeanReturns FailOver Connection URLs- Specified by:
getFailOverConnectionUrlsin interfaceBRMConnectionConfigurationMBean- Returns:
- String failOverConnectionUrls
-
setFailOverConnectionUrls
Description copied from interface:BRMConnectionConfigurationMBeanString FailOver Connection URLs- Specified by:
setFailOverConnectionUrlsin interfaceBRMConnectionConfigurationMBean- Parameters:
failOverConnectionUrls-
-
createInstance
public oracle.communication.brm.charging.util.directevolution.DEvolvable createInstance()- Specified by:
createInstancein interfaceoracle.communication.brm.charging.util.directevolution.DEvolvable
-
handlePrintConfiguration
protected void handlePrintConfiguration(org.apache.logging.log4j.Logger logger) Description copied from class:oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBeanMethod used by subclasses to dump their configuration settings to a log file.- Specified by:
handlePrintConfigurationin classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean- Parameters:
logger- the logger is provided to subclassers for writing their config values.
-
getConnectionString
public String getConnectionString() throws oracle.communication.brm.charging.util.security.SecurityExceptionMethod for composing the connect string.- Returns:
- String - the connect string in the format - pcp://root.0.0.0.1:
@ : - Throws:
oracle.communication.brm.charging.util.security.SecurityException- If the password could not be decrypted
-
testConnection
Description copied from class:AbstractConnectionConfigurationMethod to test a connection after configuration- Specified by:
testConnectionin interfaceBRMConnectionConfigurationMBean- Specified by:
testConnectionin classAbstractConnectionConfiguration- Returns:
- Message whether or not the connection was successful.
-
equals
- Overrides:
equalsin classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-
republishAll
public void republishAll()Description copied from interface:oracle.communication.brm.charging.appconfiguration.ConfigurationBeanMethod used to persist and synchronize all app configuration beans to charging-settings.xml.- Specified by:
republishAllin interfaceoracle.communication.brm.charging.appconfiguration.ConfigurationBean
-
hashCode
public int hashCode()- Overrides:
hashCodein classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-