Class BasicConfiguration

java.lang.Object
org.serviceconnector.conf.BasicConfiguration

public class BasicConfiguration extends Object
The Class BasicConfiguration.
  • Constructor Details

    • BasicConfiguration

      public BasicConfiguration()
      Instantiates a new basic configuration.
  • Method Details

    • load

      public void load(org.apache.commons.configuration2.CompositeConfiguration compositeConfiguration) throws SCMPValidatorException
      inits the configuration.
      Parameters:
      compositeConfiguration - the composite configuration
      Throws:
      SCMPValidatorException - the sCMP validator exception
    • isWritePID

      public boolean isWritePID()
      Checks if is write pid.
      Returns:
      true, if is write pid
    • getMaxIOThreads

      public int getMaxIOThreads()
      Gets the max io threads.
      Returns:
      the max io threads
    • getOperationTimeoutMultiplier

      public double getOperationTimeoutMultiplier()
      Gets the operation timeout multiplier.
      Returns:
      the operation timeout multiplier
    • getCheckRegistrationIntervalMultiplier

      public double getCheckRegistrationIntervalMultiplier()
      Gets the check registration interval multiplier.
      Returns:
      the check registration interval multiplier
    • getEchoIntervalMultiplier

      public double getEchoIntervalMultiplier()
      Gets the echo interval multiplier.
      Returns:
      the echo interval multiplier
    • getConnectionTimeoutMillis

      public int getConnectionTimeoutMillis()
      Gets the connection timeout milliseconds.
      Returns:
      the connection timeout milliseconds
    • getSubscriptionTimeoutMillis

      public int getSubscriptionTimeoutMillis()
      Gets the subscription timeout.
      Returns:
      the subscription timeout
    • isCommandValidation

      public boolean isCommandValidation()
      Checks if is command validation.
      Returns:
      true, if is command validation
    • getKeepAliveOTIMillis

      public int getKeepAliveOTIMillis()
      Gets the keep alive oti in milliseconds.
      Returns:
      the keep alive oti in milliseconds
    • getSrvAbortOTIMillis

      public int getSrvAbortOTIMillis()
      Gets the srv abort timeout.
      Returns:
      the srv abort timeout
    • getPidPath

      public String getPidPath()
      Gets the path to the directory where pid file should be written to.
      Returns:
      the pid path
    • getDumpPath

      public String getDumpPath()
      Gets the path to the directory where dump file should be written to.
      Returns:
      the dump path
    • getTcpKeepAliveListener

      public Boolean getTcpKeepAliveListener()
      Gets the TCP keep alive listener.
      Returns:
      the TCP keep alive listener
    • setTcpKeepAliveListener

      public void setTcpKeepAliveListener(boolean tcpKeepAliveListener)
      Sets the TCP keep alive listener. SC Server API is allowed to set this property.
      Parameters:
      tcpKeepAliveListener - the new TCP keep alive listener
    • getTcpKeepAliveInitiator

      public Boolean getTcpKeepAliveInitiator()
      Gets the tcp keep alive initiator.
      Returns:
      the tcp keep alive initiator
    • setTcpKeepAliveInitiator

      public void setTcpKeepAliveInitiator(boolean tcpKeepAliveInitiator)
      Sets the TCP keep alive initiator. SC Client/Server API is allowed to set this property.
      Parameters:
      tcpKeepAliveInitiator - the new TCP keep alive initiator
    • dump

      public void dump(XMLDumpWriter writer) throws Exception
      Dump the basic configuration into the xml writer.
      Parameters:
      writer - the writer
      Throws:
      Exception - the exception