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.
  • Field Details

  • Constructor Details

    • EMGatewayConfiguration

      public EMGatewayConfiguration()
      Default constructor
    • EMGatewayConfiguration

      public EMGatewayConfiguration(String name, String beanId)
      Constructor
      Parameters:
      name - bean name
      beanId - bean id
  • Method Details

    • giveInitializerTo

      public void giveInitializerTo(oracle.communication.brm.charging.util.directevolution.DEvolvableHelper DEvolvableHelper)
      Specified by:
      giveInitializerTo in interface oracle.communication.brm.charging.util.directevolution.DEvolvable
      Overrides:
      giveInitializerTo in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
    • createInstance

      public oracle.communication.brm.charging.util.directevolution.DEvolvable createInstance()
      Specified by:
      createInstance in interface oracle.communication.brm.charging.util.directevolution.DEvolvable
    • getPort

      public int getPort()
      Description copied from interface: EMGatewayConfigurationMBean
      Returns the port number of the EMGateway. EMGateway listens to BRM PCP request using a ServerSocket on this port.
      Specified by:
      getPort in interface EMGatewayConfigurationMBean
      Returns:
      the port number for this soc
    • setPort

      public void setPort(int port)
      Description copied from interface: EMGatewayConfigurationMBean
      Sets the port.
      Specified by:
      setPort in interface EMGatewayConfigurationMBean
      Parameters:
      port - port to listen for request
    • getSslEnabled

      public int getSslEnabled()
      Description copied from interface: EMGatewayConfigurationMBean
      Indicates if SSL is enabled
      Specified by:
      getSslEnabled in interface EMGatewayConfigurationMBean
      Returns:
      1 if enabled 0 if not
    • setSslEnabled

      public void setSslEnabled(int sslEnabled)
      Description copied from interface: EMGatewayConfigurationMBean
      enable/disable SSL
      Specified by:
      setSslEnabled in interface EMGatewayConfigurationMBean
      Parameters:
      sslEnabled - 1 to enable SSL and 0 to disable SSL
    • getClientAuthenticationEnabled

      public int getClientAuthenticationEnabled()
      Description copied from interface: EMGatewayConfigurationMBean
      Indicates if client authentication is needed in SSL
      Specified by:
      getClientAuthenticationEnabled in interface EMGatewayConfigurationMBean
      Returns:
      1 indicating client authentication is needed and 0 indicating not needed
    • setClientAuthenticationEnabled

      public void setClientAuthenticationEnabled(int clientAuthenticationEnabled)
      Description copied from interface: EMGatewayConfigurationMBean
      enable/disable client authentication
      Specified by:
      setClientAuthenticationEnabled in interface EMGatewayConfigurationMBean
      Parameters:
      clientAuthenticationEnabled - 1 indicating client authentication is needed and 0 indicating not needed
    • getSocketKeepAlive

      public int getSocketKeepAlive()
      Description copied from interface: EMGatewayConfigurationMBean
      Indicates if socket option keepALive is enabled
      Specified by:
      getSocketKeepAlive in interface EMGatewayConfigurationMBean
      Returns:
      int
    • setSocketKeepAlive

      public void setSocketKeepAlive(int socketKeepAlive)
      Description copied from interface: EMGatewayConfigurationMBean
      enable/disable socket keep alive
      Specified by:
      setSocketKeepAlive in interface EMGatewayConfigurationMBean
      Parameters:
      socketKeepAlive - int
    • getWallet

      public String getWallet()
      Description copied from interface: EMGatewayConfigurationMBean
      returns the wallet location
      Specified by:
      getWallet in interface EMGatewayConfigurationMBean
      Returns:
      the wallet file
    • setWallet

      public void setWallet(String wallet)
      Description copied from interface: EMGatewayConfigurationMBean
      sets the wallet file
      Specified by:
      setWallet in interface EMGatewayConfigurationMBean
      Parameters:
      wallet - wallet file location
    • setThreadPoolSize

      public void setThreadPoolSize(int threadPoolSize)
      Description copied from interface: EMGatewayConfigurationMBean
      Sets the threadPoolSize.
      Specified by:
      setThreadPoolSize in interface EMGatewayConfigurationMBean
      Parameters:
      threadPoolSize - number of threads in the threadPool for concurrent handling of request
    • getThreadPoolSize

      public int getThreadPoolSize()
      Description copied from interface: EMGatewayConfigurationMBean
      Returns the number of threads which will concurrently handle requests. Default value is 10.
      Specified by:
      getThreadPoolSize in interface EMGatewayConfigurationMBean
      Returns:
      number of threads which will concurrently log requests to a file
    • getName

      public String getName()
      Description copied from interface: EMGatewayConfigurationMBean
      Returns the name specified in the configuration.
      Specified by:
      getName in interface oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      Specified by:
      getName in interface EMGatewayConfigurationMBean
      Returns:
      name of the configuration name
    • setName

      public void setName(String name)
      Description copied from interface: oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      Unique name of the child configuration MBean. This name will be used to construct the Mbean name
      Specified by:
      setName in interface oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      Parameters:
      name -
    • getClusterName

      public String getClusterName()
      Description copied from interface: oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      Cluster name of the child configuration MBean. This name will be used to construct the Mbean name
      Specified by:
      getClusterName in interface oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      Returns:
      cluster name of the child bean
    • setClusterName

      public void setClusterName(String clusterName)
      Description copied from interface: oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      Cluster name of the child configuration MBean. This name will be used to construct the Mbean name
      Specified by:
      setClusterName in interface oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      Parameters:
      clusterName - cluster name of the child bean
    • setUpdateResponseTimeout

      public void setUpdateResponseTimeout(int updateResponseTimeout)
      Description copied from interface: EMGatewayConfigurationMBean
      Method used to modify the response timeout in millisecond
      Specified by:
      setUpdateResponseTimeout in interface EMGatewayConfigurationMBean
      Parameters:
      updateResponseTimeout - wait time for response.
    • getUpdateResponseTimeout

      public int getUpdateResponseTimeout()
      Description copied from interface: EMGatewayConfigurationMBean
      Method used to get the current max time out time for response to wait
      Specified by:
      getUpdateResponseTimeout in interface EMGatewayConfigurationMBean
      Returns:
      the max wait time for response.
    • getImplementingClass

      public Class getImplementingClass()
      Description copied from interface: oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      The implementing class is needed for dynamic instantiation in abstract class.
      Specified by:
      getImplementingClass in interface oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      Returns:
      Implementing class
    • republishAll

      public void republishAll()
      Description copied from interface: oracle.communication.brm.charging.appconfiguration.ConfigurationBean
      Method used to persist and synchronize all app configuration beans to charging-settings.xml.
      Specified by:
      republishAll in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
    • handlePrintConfiguration

      public void handlePrintConfiguration(org.apache.logging.log4j.Logger logger)
      Description copied from class: oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
      Method used by subclasses to dump their configuration settings to a log file.
      Specified by:
      handlePrintConfiguration in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
      Parameters:
      logger - the logger is provided to subclassers for writing their config values.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean