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

Constructor Index

 o MessageHandler(Socket, String, int)
initializes handler with network name and socket to listen on

Method Index

 o run()
loops forever waiting for requests and sends them to AssocList for processing
 o wakeup()
called by timer thread to periodically read the configuration file and reconstruct the in-memory network configuration.

Constructors

 o 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

Methods

 o wakeup
 public void wakeup()
called by timer thread to periodically read the configuration file and reconstruct the in-memory network configuration.

 o 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
1