|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.jlab.coda.cMsg.cMsgDomain.server.cMsgDomainServer
public class cMsgDomainServer
This class implements a cMsg domain server in the cMsg domain. One object handles all connections to a single client.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
cMsgClientInfo |
info
Object containing information about the client this object is connected to. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
cMsgDomainServer(cMsgNameServer nameServer,
cMsgSubdomainInterface handler,
cMsgClientInfo info,
int startingPort,
boolean timeOrdered)
Constructor. |
Method Summary | |
---|---|
void |
finalize()
Method to be run when this server's client is dead or disconnected and the server threads will be killed. |
cMsgSubdomainInterface |
getSubdomainHandler()
Getter for the subdomain handler object. |
void |
killSpawnedThreads()
Kill spawned threads. |
void |
run()
This method is a thread which listens for TCP connections from the client. |
void |
setTimeOrdered(boolean timeOrdered)
Set the time ordering property of the server. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public cMsgClientInfo info
Constructor Detail |
---|
public cMsgDomainServer(cMsgNameServer nameServer, cMsgSubdomainInterface handler, cMsgClientInfo info, int startingPort, boolean timeOrdered) throws cMsgException
nameServer
- nameServer object which created (is creating) this objecthandler
- object which handles all requests from the client for a particular subdomaininfo
- object containing information about the client for which this
domain server was startedstartingPort
- suggested port on which to starting listening for connectionstimeOrdered
- if true, all non-(un)subscribe requests sent to this object
are guaranteed to be passed in the order in which they were received.
cMsgException
- if listening socket could not be opened or a port to listen on could not be foundMethod Detail |
---|
public void killSpawnedThreads()
public cMsgSubdomainInterface getSubdomainHandler()
public final void setTimeOrdered(boolean timeOrdered)
timeOrdered
- set to true if timeordering of commands is desiredpublic void finalize() throws cMsgException
finalize
in class java.lang.Object
cMsgException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |