|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--uk.org.iscream.cms.server.clientinterface.CorbaDataHandler
Acts as a Data Handler to a CORBA based client.
Field Summary | |
private CorbaControlHandlerServant |
_cchServant
A reference to our controlling class |
private Client |
_client
The "servant" part of the client we're connected to. |
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
The Queue we'll use for buffering data to the client. |
private int |
_queueID
Our queue number within our Queue |
String |
REVISION
The current CVS revision of this class |
private boolean |
run
The flag that dictates whether the main loop should *completely* exit |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
CorbaDataHandler(Client client,
CorbaControlHandlerServant cchServant)
Construct a new CorbaDataHandler. |
Method Summary | |
protected void |
finalize()
Overridden for debugging purposes to see when an instance of this class is destroyed |
Queue |
getQueue()
Accessor to our Queue. |
void |
run()
This method loops round until such a point as we shutdown. |
void |
shutdown()
Method to shutdown this Data Handler. |
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, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final String REVISION
private String _name
private Logger _logger
private Queue _queue
private Client _client
private int _queueID
private boolean run
private CorbaControlHandlerServant _cchServant
Constructor Detail |
public CorbaDataHandler(Client client, CorbaControlHandlerServant cchServant)
client
- A reference to the "servant" part of the connecting client.Method Detail |
public void run()
run
in interface Runnable
run
in class Thread
public void shutdown()
public 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
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public Queue getQueue()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |