sg.edu.nus.peer.management
Class AbstractEventManager

java.lang.Object
  extended by sg.edu.nus.util.AbstractPooledSocketServer
      extended by sg.edu.nus.peer.management.AbstractEventManager
All Implemented Interfaces:
java.lang.Runnable, PooledSocketServer
Direct Known Subclasses:
BootstrapEventManager, ServerEventManager

public abstract class AbstractEventManager
extends AbstractPooledSocketServer

An abstract event manager is responsbile for accepting the incoming socket connections.

The methods in this class are empty. This class exists as convenience for creating concrete event managers.

Version:
1.0 2005-12-30
Author:
Xu Linhao

Constructor Summary
AbstractEventManager(AbstractMainFrame gui, int port, int maxConn)
          Construct a pooled socket server at specified port and with maximum number of incoming connections
 
Method Summary
 void stop()
          Stop the service for accepting the incoming socke requests and clear all socket handlers at the same time.
 
Methods inherited from class sg.edu.nus.util.AbstractPooledSocketServer
acceptConnections, isAlive, run, setupHandlers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEventManager

public AbstractEventManager(AbstractMainFrame gui,
                            int port,
                            int maxConn)
Construct a pooled socket server at specified port and with maximum number of incoming connections

Parameters:
gui - the main frame that contains the event manager
port - the port used for server socket
maxConn - the maximum connections that can be handled simultaneously
Method Detail

stop

public void stop()
Description copied from interface: PooledSocketServer
Stop the service for accepting the incoming socke requests and clear all socket handlers at the same time.