Package org.serviceconnector.conf
Class RemoteNodeConfiguration
java.lang.Object
org.serviceconnector.conf.RemoteNodeConfiguration
The Class RemoteNodeConfiguration.
-
Constructor Summary
ConstructorsConstructorDescriptionThe Constructor.RemoteNodeConfiguration(String name, String host, int port, String connectionType, int keepAliveIntervalSeconds, int checkRegistrationIntervalSeconds, int maxConnections) Instantiates a new remote node configuration.RemoteNodeConfiguration(ServerType serverType, String name, String host, int port, String connectionType, int keepAliveIntervalSeconds, int checkRegistrationIntervalSeconds, int maxConnections, int maxSessions, String httpUrlFileQualifier) Instantiates a new remote node configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(XMLDumpWriter writer) Dump the remote node into the xml writer.intGets the check registration interval seconds.getHost()intintintgetName()Gets the name.intgetPort()voidload(org.apache.commons.configuration2.CompositeConfiguration compositeConfig) Load the configurated items.toString()
-
Constructor Details
-
RemoteNodeConfiguration
The Constructor.- Parameters:
name- the remote node name
-
RemoteNodeConfiguration
public RemoteNodeConfiguration(ServerType serverType, String name, String host, int port, String connectionType, int keepAliveIntervalSeconds, int checkRegistrationIntervalSeconds, int maxConnections, int maxSessions, String httpUrlFileQualifier) Instantiates a new remote node configuration.- Parameters:
serverType- the server typename- the namehost- the hostport- the portconnectionType- the connection typekeepAliveIntervalSeconds- the keep alive interval secondsmaxConnections- the max connectionsmaxSessions- the max sessions
-
RemoteNodeConfiguration
public RemoteNodeConfiguration(String name, String host, int port, String connectionType, int keepAliveIntervalSeconds, int checkRegistrationIntervalSeconds, int maxConnections) Instantiates a new remote node configuration.- Parameters:
name- the namehost- the hostport- the portconnectionType- the connection typekeepAliveIntervalSeconds- the keep alive interval secondsmaxConnections- the max connections
-
-
Method Details
-
load
public void load(org.apache.commons.configuration2.CompositeConfiguration compositeConfig) throws SCMPValidatorException Load the configurated items.- Parameters:
compositeConfig- the composite config- Throws:
SCMPValidatorException- the sCMP validator exception
-
dump
Dump the remote node into the xml writer.- Parameters:
writer- the writer- Throws:
Exception- the exception
-
getName
Gets the name.- Returns:
- the name
-
getHost
- Returns:
- the remote host
-
getPort
public int getPort()- Returns:
- port number
-
getConnectionType
- Returns:
- connectionType
-
getMaxPoolSize
public int getMaxPoolSize()- Returns:
- maxPoolSize for file or web servers or cascaded SCs
-
getKeepAliveIntervalSeconds
public int getKeepAliveIntervalSeconds()- Returns:
- keepAliveIntervalSeconds for file or web servers or cascaded SCs
-
getCheckRegistrationIntervalSeconds
public int getCheckRegistrationIntervalSeconds()Gets the check registration interval seconds.- Returns:
- the check registration interval seconds
-
getServerType
- Returns:
- serverType (called type in the configuration)
-
getHttpUrlFileQualifier
- Returns:
- the HTTP URL qualifier.
-
getMaxSessions
public int getMaxSessions()- Returns:
- maxSessions for file servers
-
toString
-