|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
uk.org.iscream.cms.server.clientinterface.PacketSorter
class PacketSorter
Receives data from the incoming CORBA servant, places it in a Queue, and then arranges distribution to the DataHandlers. Has extra functionality to send data to DataHandlers on a per-host basis - ie. the Client can request which hosts it would like to listen for.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private LinkedList |
_allHostDataList
A list specifically for a Queue's associated with DataHandlers that want all host information. |
private LinkedList |
_allHostsList
A list of all hosts. |
private HashMap |
_hostMap
A HashMap to store lists of Queue's (in the DataHandlers) in a way that can be easily accessed when data comes in. |
private Logger |
_logger
This holds a reference to the system logger that is being used. |
private String |
_name
This is the friendly identifier of the component this class is running in. |
private Queue |
_queue
A reference to the Queue we're using. |
private XMLCache |
_xmlCache
A reference to the XMLCache in use |
String |
REVISION
The current CVS revision of this class |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
PacketSorter()
Creates a new PacketSorter. |
Method Summary | |
---|---|
void |
deregister(Queue dhQueue,
String hostList)
Deregister a DataHandler. |
Queue |
getQueue()
Accessor to return a reference to the Queue object. |
void |
register(Queue dhQueue,
String hostList)
Register a DataHandler in the system. |
void |
run()
Method to start the PacketSorter running. |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
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, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String REVISION
private String _name
private Logger _logger
private Queue _queue
private HashMap _hostMap
private LinkedList _allHostDataList
private LinkedList _allHostsList
private XMLCache _xmlCache
Constructor Detail |
---|
public PacketSorter()
Method Detail |
---|
public void run()
run
in interface Runnable
run
in class Thread
public void register(Queue dhQueue, String hostList)
dhQueue
- a Queue being used by the DataHandler that is registeringhostList
- a semi-colon seperated list of hostspublic void deregister(Queue dhQueue, String hostList)
dhQueue
- a Queue being used by the DataHandler that is deregisteringhostList
- a semi-colon seperated list of hostspublic String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.org.iscream.cms.util.NameFormat class
to format the toString()
toString
in class Thread
public Queue getQueue()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |