Class TestStatefulServer

java.lang.Object
java.lang.Thread
org.serviceconnector.srv.TestStatefulServer
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
TestPublishServer, TestSessionServer

public abstract class TestStatefulServer extends Thread
  • Field Details

    • LOGGER

      protected static org.slf4j.Logger LOGGER
      The Constant LOGGER, must be initialized in subclass.
    • fs

      protected static final String fs
      The Constant sessionLogger.
    • ctr

      protected ThreadSafeCounter ctr
    • listenerPort

      protected int listenerPort
    • port

      protected int port
    • maxSessions

      protected int maxSessions
    • maxConnections

      protected int maxConnections
    • serviceNames

      protected String serviceNames
    • serverName

      protected String serverName
    • connectionType

      protected org.serviceconnector.net.ConnectionType connectionType
    • nicsStrings

      protected String nicsStrings
  • Constructor Details

    • TestStatefulServer

      public TestStatefulServer()
  • Method Details

    • setServerName

      public void setServerName(String serverName)
    • setListenerPort

      public void setListenerPort(int listenerPort)
    • setPort

      public void setPort(int port)
    • setMaxSessions

      public void setMaxSessions(int maxSessions)
    • setMaxConnections

      public void setMaxConnections(int maxConnections)
    • setNics

      public void setNics(String nics)
    • setServiceNames

      public void setServiceNames(String serviceNames)
    • getConnectionType

      public org.serviceconnector.net.ConnectionType getConnectionType()
    • setConnectionType

      public void setConnectionType(String connectionType)
    • addExitHandler

      protected void addExitHandler(String pidFileNameFull, org.serviceconnector.util.FileCtx fileCtx)
      Adds the shutdown hook.