ikrs.yuccasrv.socketmngr
Class ServerSocketThread

java.lang.Object
  extended by java.lang.Thread
      extended by ikrs.yuccasrv.socketmngr.ServerSocketThread
All Implemented Interfaces:
java.lang.Runnable

public class ServerSocketThread
extends java.lang.Thread
implements java.lang.Runnable

The ServerSocketThread class implements a Runnable object to wrap the basic server into a concurrent thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int DEFAULT_BACKLOG
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected ServerSocketThread(CustomLogger logger, java.net.InetAddress bindAddress, int bindPort, Environment<java.lang.String,BasicType> bindSettings, ServerSocketThreadObserver observer)
          The constructor.
 
Method Summary
 void finalize()
           
 java.net.InetAddress getBindAddress()
           
 int getBindPort()
           
 java.util.Map<java.lang.String,BasicType> getServerSettings()
           
 java.lang.String getStatusString()
           
 java.util.UUID getUUID()
           
 void interrupt()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_BACKLOG

public static final int DEFAULT_BACKLOG
See Also:
Constant Field Values
Constructor Detail

ServerSocketThread

protected ServerSocketThread(CustomLogger logger,
                             java.net.InetAddress bindAddress,
                             int bindPort,
                             Environment<java.lang.String,BasicType> bindSettings,
                             ServerSocketThreadObserver observer)
                      throws java.io.IOException,
                             java.security.GeneralSecurityException
The constructor.

Throws:
java.io.IOException
java.security.GeneralSecurityException
Method Detail

getUUID

public java.util.UUID getUUID()

getBindAddress

public java.net.InetAddress getBindAddress()

getBindPort

public int getBindPort()

getServerSettings

public java.util.Map<java.lang.String,BasicType> getServerSettings()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

interrupt

public void interrupt()
Overrides:
interrupt in class java.lang.Thread

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

getStatusString

public java.lang.String getStatusString()