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

  • Constructor Details

    • BRMConnectionConfiguration

      public BRMConnectionConfiguration()
      Default Constructor
  • Method Details

    • getEceWalletLocation

      public String getEceWalletLocation()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns the wallet location where password is stored.
      Specified by:
      getEceWalletLocation in interface BRMConnectionConfigurationMBean
      Returns:
      wallet location
    • setEceWalletLocation

      public void setEceWalletLocation(String walletLocation)
      Description copied from interface: BRMConnectionConfigurationMBean
      Sets the Wallet Location
      Specified by:
      setEceWalletLocation in interface BRMConnectionConfigurationMBean
      Parameters:
      walletLocation - ECE Wallet location
    • getName

      public String getName()
      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:
      getName in interface oracle.communication.brm.charging.appconfiguration.ChildConfigBean
      Returns:
      name of the child bean
    • 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
    • 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
    • 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
    • getLoginName

      public String getLoginName()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns the login name for connecting to BRM.
      Specified by:
      getLoginName in interface BRMConnectionConfigurationMBean
      Returns:
      login name
    • setLoginName

      public void setLoginName(String loginName)
      Description copied from interface: BRMConnectionConfigurationMBean
      Sets the login name for connecting to BRM.
      Specified by:
      setLoginName in interface BRMConnectionConfigurationMBean
      Parameters:
      loginName - the login name for connecting to BRM
    • getProtocol

      public String getProtocol()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns protocol for communication with BRM.
      Specified by:
      getProtocol in interface BRMConnectionConfigurationMBean
      Returns:
      protocol.
    • setProtocol

      public void setProtocol(String protocol)
      Description copied from interface: BRMConnectionConfigurationMBean
      Sets protocol for communication with BRM.
      Specified by:
      setProtocol in interface BRMConnectionConfigurationMBean
      Parameters:
      protocol - protocol for communication with BRM
    • getPassword

      public String getPassword()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns the password(***) to display on jconsole.
      Specified by:
      getPassword in interface BRMConnectionConfigurationMBean
      Returns:
      password(***)
    • getPasswordFromWallet

      public String getPasswordFromWallet()
    • setPassword

      public void setPassword(String password, String walletPassword)
      Description copied from interface: BRMConnectionConfigurationMBean
      Sets the password used for connecting to BRM.
      Specified by:
      setPassword in interface BRMConnectionConfigurationMBean
      Parameters:
      password - to be set
      walletPassword - walletPassword which need to open the wallet
    • getHostName

      public String getHostName()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns BRM host name for connecting to BRM.
      Specified by:
      getHostName in interface BRMConnectionConfigurationMBean
      Returns:
      host name
    • setHostName

      public void setHostName(String hostName)
      Description copied from interface: BRMConnectionConfigurationMBean
      Sets BRM host name for connecting to BRM.
      Specified by:
      setHostName in interface BRMConnectionConfigurationMBean
      Parameters:
      hostName - to be set
    • getCmPort

      public String getCmPort()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns the port for connecting to BRM.
      Specified by:
      getCmPort in interface BRMConnectionConfigurationMBean
      Returns:
      cmPort
    • setCmPort

      public void setCmPort(String cmPort)
      Description copied from interface: BRMConnectionConfigurationMBean
      Sets the port used for connecting to BRM.
      Specified by:
      setCmPort in interface BRMConnectionConfigurationMBean
      Parameters:
      cmPort - to be set
    • getLoginType

      public int getLoginType()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns the login type to connect to BRM, 1 indicates with password and 0 indicates no password.
      Specified by:
      getLoginType in interface BRMConnectionConfigurationMBean
      Returns:
      login type
    • setLoginType

      public void setLoginType(int loginType)
      Description copied from interface: BRMConnectionConfigurationMBean
      Sets the login type to connect to BRM, 1 indicates with password and 0 indicates no password.
      Specified by:
      setLoginType in interface BRMConnectionConfigurationMBean
      Parameters:
      loginType - the login type to connect to BRM
    • getNumberOfConnections

      public int getNumberOfConnections()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns number of connections configured for pooling.
      Specified by:
      getNumberOfConnections in interface BRMConnectionConfigurationMBean
      Returns:
      int number of CM connections
    • setNumberOfConnections

      public void setNumberOfConnections(int numberOfConnections)
      Description copied from interface: BRMConnectionConfigurationMBean
      Sets number of connections configured for pooling.
      Specified by:
      setNumberOfConnections in interface BRMConnectionConfigurationMBean
      Parameters:
      numberOfConnections - number of connections configured for pooling
    • getSslEnabled

      public int getSslEnabled()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns SSL enabled info.
      Specified by:
      getSslEnabled in interface BRMConnectionConfigurationMBean
      Returns:
      int SSL enabled info
    • setSslEnabled

      public void setSslEnabled(int sslEnabled)
      Description copied from interface: BRMConnectionConfigurationMBean
      enable or disable SSL
      Specified by:
      setSslEnabled in interface BRMConnectionConfigurationMBean
      Parameters:
      sslEnabled - for SSL mode
    • getWallet

      public String getWallet()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns wallet location
      Specified by:
      getWallet in interface BRMConnectionConfigurationMBean
      Returns:
      String Wallet
    • setWallet

      public void setWallet(String wallet)
      Description copied from interface: BRMConnectionConfigurationMBean
      String wallet location
      Specified by:
      setWallet in interface BRMConnectionConfigurationMBean
      Parameters:
      wallet -
    • getFailOverConnectionUrls

      public String getFailOverConnectionUrls()
      Description copied from interface: BRMConnectionConfigurationMBean
      Returns FailOver Connection URLs
      Specified by:
      getFailOverConnectionUrls in interface BRMConnectionConfigurationMBean
      Returns:
      String failOverConnectionUrls
    • setFailOverConnectionUrls

      public void setFailOverConnectionUrls(String failOverConnectionUrls)
      Description copied from interface: BRMConnectionConfigurationMBean
      String FailOver Connection URLs
      Specified by:
      setFailOverConnectionUrls in interface BRMConnectionConfigurationMBean
      Parameters:
      failOverConnectionUrls -
    • createInstance

      public oracle.communication.brm.charging.util.directevolution.DEvolvable createInstance()
      Specified by:
      createInstance in interface oracle.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.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.
    • getConnectionString

      public String getConnectionString() throws oracle.communication.brm.charging.util.security.SecurityException
      Method 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

      public String testConnection()
      Description copied from class: AbstractConnectionConfiguration
      Method to test a connection after configuration
      Specified by:
      testConnection in interface BRMConnectionConfigurationMBean
      Specified by:
      testConnection in class AbstractConnectionConfiguration
      Returns:
      Message whether or not the connection was successful.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
    • 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
    • hashCode

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