Class RemoteNodeConfiguration

java.lang.Object
org.serviceconnector.conf.RemoteNodeConfiguration

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

    • RemoteNodeConfiguration

      public RemoteNodeConfiguration(String name)
      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 type
      name - the name
      host - the host
      port - the port
      connectionType - the connection type
      keepAliveIntervalSeconds - the keep alive interval seconds
      maxConnections - the max connections
      maxSessions - 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 name
      host - the host
      port - the port
      connectionType - the connection type
      keepAliveIntervalSeconds - the keep alive interval seconds
      maxConnections - 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

      public void dump(XMLDumpWriter writer) throws Exception
      Dump the remote node into the xml writer.
      Parameters:
      writer - the writer
      Throws:
      Exception - the exception
    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • getHost

      public String getHost()
      Returns:
      the remote host
    • getPort

      public int getPort()
      Returns:
      port number
    • getConnectionType

      public String 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

      public ServerType getServerType()
      Returns:
      serverType (called type in the configuration)
    • getHttpUrlFileQualifier

      public String getHttpUrlFileQualifier()
      Returns:
      the HTTP URL qualifier.
    • getMaxSessions

      public int getMaxSessions()
      Returns:
      maxSessions for file servers
    • toString

      public String toString()
      Overrides:
      toString in class Object