class cMsgDomainServer
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
(package private) java.util.concurrent.atomic.AtomicBoolean |
calledShutdown
Keep track of whether the shutdown method of this object has already been called.
|
(package private) static java.lang.String |
domainType
Type of domain this is.
|
(package private) cMsgClientData |
info
Object containing information about the client this object is connected to.
|
(package private) boolean |
killSpawnedThreads
Kill all spawned threads if true.
|
Constructor and Description |
---|
cMsgDomainServer(cMsgNameServer nameServer,
cMsgClientData info,
boolean noUdp,
int debug)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
cMsgSubdomainInterface |
getSubdomainHandler()
Getter for the subdomain handler object.
|
int |
getUdpPort()
Getter for the UDP port being used.
|
void |
killSpawnedThreads()
Kill spawned threads.
|
(package private) void |
shutdown()
Method to gracefully shutdown this object's threads and clean things up.
|
(package private) void |
startThreads()
Start reading and writing over the sockets.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
static java.lang.String domainType
cMsgClientData info
java.util.concurrent.atomic.AtomicBoolean calledShutdown
volatile boolean killSpawnedThreads
public cMsgDomainServer(cMsgNameServer nameServer, cMsgClientData info, boolean noUdp, int debug) throws cMsgException
nameServer
- nameServer object which created (is creating) this objectinfo
- object containing client datanoUdp
- if true, do not create and listen on a udp socket.debug
- level of debug output.cMsgException
- if UDP listening socket could not be openedpublic void killSpawnedThreads()
public int getUdpPort()
public cMsgSubdomainInterface getSubdomainHandler()
void startThreads() throws java.io.IOException
java.io.IOException
- if streams to and from client cannot be openedvoid shutdown()