sg.edu.nus.util
Interface PooledSocketServer

All Known Implementing Classes:
AbstractEventManager, AbstractPooledSocketServer, BootstrapEventManager, ServerEventManager

public interface PooledSocketServer

This interface defines the methods used for initializing a set of PooledSocketHandlers that are reponsible for processing each incoming socket request, accepting any incoming socket request by wrapping java.net.ServerSocket, and stopping the service of java.net.ServerSocket and all running PooledSocketHandlers.

Version:
1.0 2005-12-29
Author:
Xu Linhao
See Also:
PooledSocketHandler, AbstractPooledSocketServer

Method Summary
 void acceptConnections()
          Accept any incoming socket request from remote users and dispatch it to a sleeping PooledSocketHanlder.
 void setupHandlers()
          Initiate a set of PooledSocketHandler, which is responsible for processing each incoming socket request.
 void stop()
          Stop the service for accepting the incoming socke requests and clear all socket handlers at the same time.
 

Method Detail

setupHandlers

void setupHandlers()
Initiate a set of PooledSocketHandler, which is responsible for processing each incoming socket request.


acceptConnections

void acceptConnections()
Accept any incoming socket request from remote users and dispatch it to a sleeping PooledSocketHanlder.


stop

void stop()
Stop the service for accepting the incoming socke requests and clear all socket handlers at the same time.