All Packages Class Hierarchy This Package Previous Next Index
Class magician.Four11.MessageHandler
java.lang.Object
|
+----magician.Four11.MessageHandler
- public class MessageHandler
- extends Object
- implements Sleeper, Runnable
The MessageHandler is started by the Four11 server when a new request arrives
from an active node. The Four11 server starts a thread that
handles the request and returns the reply. The request is actually sent
to the AssocList object for resolving. The reply returned by
the AssocList object is sent back to the requestor.
- See Also:
- Four11, AssocList
-
MessageHandler(Socket, String, int)
- initializes handler with network name and socket to listen on
-
run()
- loops forever waiting for requests and sends them to AssocList for
processing
-
wakeup()
- called by timer thread to periodically read the configuration file and
reconstruct the in-memory network configuration.
MessageHandler
public MessageHandler(Socket soc,
String network,
int connID)
- initializes handler with network name and socket to listen on
- Parameters:
- soc - the socket on which requests are made
- network - the name of network
- connID - the connection identifier for the active node
wakeup
public void wakeup()
- called by timer thread to periodically read the configuration file and
reconstruct the in-memory network configuration.
run
public void run()
- loops forever waiting for requests and sends them to AssocList for
processing
- See Also:
- AssocList
All Packages Class Hierarchy This Package Previous Next Index