Class EMGatewayConfiguration
java.lang.Object
java.util.Observable
oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
oracle.communication.brm.charging.appconfiguration.beans.emgateway.EMGatewayConfiguration
- All Implemented Interfaces:
Cloneable,EMGatewayConfigurationMBean,oracle.communication.brm.charging.appconfiguration.ChildConfigBean,oracle.communication.brm.charging.appconfiguration.ConfigurationBean,oracle.communication.brm.charging.util.directevolution.DEvolvable
public class EMGatewayConfiguration
extends oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
implements EMGatewayConfigurationMBean, oracle.communication.brm.charging.appconfiguration.ChildConfigBean
This class represents the configuration bean for the EMGateway. All available
configuration values are present in this bean. The bean is populated with values that
are present in an xml configuration file. The bean will default to certain value below if
values are not present in the supplied xml file.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
CONFIG_CLASS, M_BEAN_CATEGORY, POF_IMPL -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorEMGatewayConfiguration(String name, String beanId) Constructor -
Method Summary
Modifier and TypeMethodDescriptionoracle.communication.brm.charging.util.directevolution.DEvolvablebooleanintIndicates if client authentication is needed in SSLCluster name of the child configuration MBean.The implementing class is needed for dynamic instantiation in abstract class.getName()Returns the name specified in the configuration.intgetPort()Returns the port number of the EMGateway.intIndicates if socket option keepALive is enabledintIndicates if SSL is enabledintReturns the number of threads which will concurrently handle requests.intMethod used to get the current max time out time for response to waitreturns the wallet locationvoidgiveInitializerTo(oracle.communication.brm.charging.util.directevolution.DEvolvableHelper DEvolvableHelper) 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.voidsetClientAuthenticationEnabled(int clientAuthenticationEnabled) enable/disable client authenticationvoidsetClusterName(String clusterName) Cluster name of the child configuration MBean.voidUnique name of the child configuration MBean.voidsetPort(int port) Sets the port.voidsetSocketKeepAlive(int socketKeepAlive) enable/disable socket keep alivevoidsetSslEnabled(int sslEnabled) enable/disable SSLvoidsetThreadPoolSize(int threadPoolSize) Sets the threadPoolSize.voidsetUpdateResponseTimeout(int updateResponseTimeout) Method used to modify the response timeout in millisecondvoidsets the wallet fileMethods 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_PORT_NUMBER
public static final int POF_PORT_NUMBER- See Also:
-
POF_THREADPOOL_SIZE
public static final int POF_THREADPOOL_SIZE- See Also:
-
POF_SSL_ENABLED
public static final int POF_SSL_ENABLED- See Also:
-
POF_CLIENT_AUTHENTICATION
public static final int POF_CLIENT_AUTHENTICATION- See Also:
-
POF_WALLET
public static final int POF_WALLET- See Also:
-
POF_SOCKET_KEEPALIVE
public static final int POF_SOCKET_KEEPALIVE- See Also:
-
POF_UPDATE_RESPONSE_TIMEOUT
public static final int POF_UPDATE_RESPONSE_TIMEOUT- See Also:
-
DEFAULT_NAME
- See Also:
-
DEFAULT_WALLET
- See Also:
-
DEFAULT_PORT_NUMBER
public static final int DEFAULT_PORT_NUMBER- See Also:
-
DEFAULT_THREADPOOL_SIZE
public static final int DEFAULT_THREADPOOL_SIZE- See Also:
-
DEFAULT_SSL_ENABLED
public static final int DEFAULT_SSL_ENABLED- See Also:
-
DEFAULT_CLIENT_AUTHENTICATION
public static final int DEFAULT_CLIENT_AUTHENTICATION- See Also:
-
DEFAULT_SOCKET_KEEPALIVE
public static final int DEFAULT_SOCKET_KEEPALIVE- See Also:
-
DEFAULT_UPDATE_RESPONSE_TIMEOUT
public static final int DEFAULT_UPDATE_RESPONSE_TIMEOUT- See Also:
-
NAME
- See Also:
-
PORT
- See Also:
-
THREADPOOL_SIZE
- See Also:
-
SSL_ENABLED
- See Also:
-
CLIENT_AUTHENTICATION
- See Also:
-
WALLET
- See Also:
-
SOCKET_KEEPALIVE
- See Also:
-
UPDATE_RESPONSE_TIMEOUT
- See Also:
-
-
Constructor Details
-
EMGatewayConfiguration
public EMGatewayConfiguration()Default constructor -
EMGatewayConfiguration
Constructor- Parameters:
name- bean namebeanId- bean id
-
-
Method Details
-
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
-
createInstance
public oracle.communication.brm.charging.util.directevolution.DEvolvable createInstance()- Specified by:
createInstancein interfaceoracle.communication.brm.charging.util.directevolution.DEvolvable
-
getPort
public int getPort()Description copied from interface:EMGatewayConfigurationMBeanReturns the port number of the EMGateway. EMGateway listens to BRM PCP request using a ServerSocket on this port.- Specified by:
getPortin interfaceEMGatewayConfigurationMBean- Returns:
- the port number for this soc
-
setPort
public void setPort(int port) Description copied from interface:EMGatewayConfigurationMBeanSets the port.- Specified by:
setPortin interfaceEMGatewayConfigurationMBean- Parameters:
port- port to listen for request
-
getSslEnabled
public int getSslEnabled()Description copied from interface:EMGatewayConfigurationMBeanIndicates if SSL is enabled- Specified by:
getSslEnabledin interfaceEMGatewayConfigurationMBean- Returns:
- 1 if enabled 0 if not
-
setSslEnabled
public void setSslEnabled(int sslEnabled) Description copied from interface:EMGatewayConfigurationMBeanenable/disable SSL- Specified by:
setSslEnabledin interfaceEMGatewayConfigurationMBean- Parameters:
sslEnabled- 1 to enable SSL and 0 to disable SSL
-
getClientAuthenticationEnabled
public int getClientAuthenticationEnabled()Description copied from interface:EMGatewayConfigurationMBeanIndicates if client authentication is needed in SSL- Specified by:
getClientAuthenticationEnabledin interfaceEMGatewayConfigurationMBean- Returns:
- 1 indicating client authentication is needed and 0 indicating not needed
-
setClientAuthenticationEnabled
public void setClientAuthenticationEnabled(int clientAuthenticationEnabled) Description copied from interface:EMGatewayConfigurationMBeanenable/disable client authentication- Specified by:
setClientAuthenticationEnabledin interfaceEMGatewayConfigurationMBean- Parameters:
clientAuthenticationEnabled- 1 indicating client authentication is needed and 0 indicating not needed
-
getSocketKeepAlive
public int getSocketKeepAlive()Description copied from interface:EMGatewayConfigurationMBeanIndicates if socket option keepALive is enabled- Specified by:
getSocketKeepAlivein interfaceEMGatewayConfigurationMBean- Returns:
- int
-
setSocketKeepAlive
public void setSocketKeepAlive(int socketKeepAlive) Description copied from interface:EMGatewayConfigurationMBeanenable/disable socket keep alive- Specified by:
setSocketKeepAlivein interfaceEMGatewayConfigurationMBean- Parameters:
socketKeepAlive- int
-
getWallet
Description copied from interface:EMGatewayConfigurationMBeanreturns the wallet location- Specified by:
getWalletin interfaceEMGatewayConfigurationMBean- Returns:
- the wallet file
-
setWallet
Description copied from interface:EMGatewayConfigurationMBeansets the wallet file- Specified by:
setWalletin interfaceEMGatewayConfigurationMBean- Parameters:
wallet- wallet file location
-
setThreadPoolSize
public void setThreadPoolSize(int threadPoolSize) Description copied from interface:EMGatewayConfigurationMBeanSets the threadPoolSize.- Specified by:
setThreadPoolSizein interfaceEMGatewayConfigurationMBean- Parameters:
threadPoolSize- number of threads in the threadPool for concurrent handling of request
-
getThreadPoolSize
public int getThreadPoolSize()Description copied from interface:EMGatewayConfigurationMBeanReturns the number of threads which will concurrently handle requests. Default value is 10.- Specified by:
getThreadPoolSizein interfaceEMGatewayConfigurationMBean- Returns:
- number of threads which will concurrently log requests to a file
-
getName
Description copied from interface:EMGatewayConfigurationMBeanReturns the name specified in the configuration.- Specified by:
getNamein interfaceoracle.communication.brm.charging.appconfiguration.ChildConfigBean- Specified by:
getNamein interfaceEMGatewayConfigurationMBean- Returns:
- name of the configuration name
-
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
-
setUpdateResponseTimeout
public void setUpdateResponseTimeout(int updateResponseTimeout) Description copied from interface:EMGatewayConfigurationMBeanMethod used to modify the response timeout in millisecond- Specified by:
setUpdateResponseTimeoutin interfaceEMGatewayConfigurationMBean- Parameters:
updateResponseTimeout- wait time for response.
-
getUpdateResponseTimeout
public int getUpdateResponseTimeout()Description copied from interface:EMGatewayConfigurationMBeanMethod used to get the current max time out time for response to wait- Specified by:
getUpdateResponseTimeoutin interfaceEMGatewayConfigurationMBean- Returns:
- the max wait time for response.
-
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
-
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
-
handlePrintConfiguration
public 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.
-
equals
- Overrides:
equalsin classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-
hashCode
public int hashCode()- Overrides:
hashCodein classoracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
-