Package org.serviceconnector.conf
Class BasicConfiguration
java.lang.Object
org.serviceconnector.conf.BasicConfiguration
The Class BasicConfiguration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(XMLDumpWriter writer) Dump the basic configuration into the xml writer.doubleGets the check registration interval multiplier.intGets the connection timeout milliseconds.Gets the path to the directory where dump file should be written to.doubleGets the echo interval multiplier.intGets the keep alive oti in milliseconds.intGets the max io threads.doubleGets the operation timeout multiplier.Gets the path to the directory where pid file should be written to.intGets the srv abort timeout.intGets the subscription timeout.Gets the tcp keep alive initiator.Gets the TCP keep alive listener.booleanChecks if is command validation.booleanChecks if is write pid.voidload(org.apache.commons.configuration2.CompositeConfiguration compositeConfiguration) inits the configuration.voidsetTcpKeepAliveInitiator(boolean tcpKeepAliveInitiator) Sets the TCP keep alive initiator.voidsetTcpKeepAliveListener(boolean tcpKeepAliveListener) Sets the TCP keep alive listener.
-
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
Gets the path to the directory where pid file should be written to.- Returns:
- the pid path
-
getDumpPath
Gets the path to the directory where dump file should be written to.- Returns:
- the dump path
-
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
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
Dump the basic configuration into the xml writer.- Parameters:
writer- the writer- Throws:
Exception- the exception
-