dk.itu.smds.torusman
Class ClientListener
java.lang.Object
java.lang.Thread
dk.itu.smds.torusman.ClientListener
- All Implemented Interfaces:
- java.lang.Runnable
public class ClientListener
- extends java.lang.Thread
The listener interface for receiving client events.
The class that is interested in processing a client
event implements this interface, and the object created
with that class is registered with a component using the
component's addClientListener method. When
the client event occurs, that object's appropriate
method is invoked.
- See Also:
ClientEvent
Nested classes/interfaces inherited from class java.lang.Thread |
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary |
void |
run()
Listens for packages and handles them accordingly. |
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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ins
public java.io.DataInputStream ins
- The ins.
conId
public byte conId
- The con id.
t
public DistTorus t
- The t.
cts
public ClientTimeSender cts
- The cts.
ClientListener
public ClientListener(java.io.DataInputStream in,
ClientTimeSender c,
DistTorus d)
- Instantiates a new client listener.
- Parameters:
in
- the inc
- the cd
- the d
run
public void run()
- Listens for packages and handles them accordingly.
- Specified by:
run
in interface java.lang.Runnable
- Overrides:
run
in class java.lang.Thread
- See Also:
Thread.run()