Package org.serviceconnector.srv
Class TestStatefulServer
java.lang.Object
java.lang.Thread
org.serviceconnector.srv.TestStatefulServer
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
TestPublishServer,TestSessionServer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classTestStatefulServer.KillThread<T extends org.serviceconnector.api.srv.SCSessionServer>Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.serviceconnector.net.ConnectionTypeprotected ThreadSafeCounterprotected static final StringThe Constant sessionLogger.protected intprotected static org.slf4j.LoggerThe Constant LOGGER, must be initialized in subclass.protected intprotected intprotected Stringprotected intprotected Stringprotected StringFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddExitHandler(String pidFileNameFull, org.serviceconnector.util.FileCtx fileCtx) Adds the shutdown hook.org.serviceconnector.net.ConnectionTypevoidsetConnectionType(String connectionType) voidsetListenerPort(int listenerPort) voidsetMaxConnections(int maxConnections) voidsetMaxSessions(int maxSessions) voidvoidsetPort(int port) voidsetServerName(String serverName) voidsetServiceNames(String serviceNames) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
LOGGER
protected static org.slf4j.Logger LOGGERThe Constant LOGGER, must be initialized in subclass. -
fs
The Constant sessionLogger. -
ctr
-
listenerPort
protected int listenerPort -
port
protected int port -
maxSessions
protected int maxSessions -
maxConnections
protected int maxConnections -
serviceNames
-
serverName
-
connectionType
protected org.serviceconnector.net.ConnectionType connectionType -
nicsStrings
-
-
Constructor Details
-
TestStatefulServer
public TestStatefulServer()
-
-
Method Details
-
setServerName
-
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
-
setServiceNames
-
getConnectionType
public org.serviceconnector.net.ConnectionType getConnectionType() -
setConnectionType
-
addExitHandler
Adds the shutdown hook.
-