org.apache.activeio.xnet
Class ServicePool

java.lang.Object
  extended by org.apache.activeio.xnet.ServicePool
All Implemented Interfaces:
ServerService, SocketService

public class ServicePool
extends Object
implements ServerService


Constructor Summary
ServicePool(ServerService next, edu.emory.mathcs.backport.java.util.concurrent.Executor executor)
           
ServicePool(ServerService next, String name, int threads, long keepAliveTime)
           
 
Method Summary
 String getIP()
          Gets the ip number that the daemon is listening on.
 String getName()
          Gets the name of the service.
 int getPort()
          Gets the port number that the daemon is listening on.
 void init(Properties props)
          Pulls out the access log information
 void service(Socket socket)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePool

public ServicePool(ServerService next,
                   String name,
                   int threads,
                   long keepAliveTime)

ServicePool

public ServicePool(ServerService next,
                   edu.emory.mathcs.backport.java.util.concurrent.Executor executor)
Method Detail

service

public void service(Socket socket)
             throws ServiceException,
                    IOException
Specified by:
service in interface SocketService
Throws:
ServiceException
IOException

init

public void init(Properties props)
          throws Exception
Pulls out the access log information

Specified by:
init in interface ServerService
Parameters:
props -
Throws:
ServiceException
Exception

start

public void start()
           throws ServiceException
Specified by:
start in interface ServerService
Throws:
ServiceException

stop

public void stop()
          throws ServiceException
Specified by:
stop in interface ServerService
Throws:
ServiceException

getName

public String getName()
Gets the name of the service. Used for display purposes only

Specified by:
getName in interface SocketService

getIP

public String getIP()
Gets the ip number that the daemon is listening on.

Specified by:
getIP in interface ServerService

getPort

public int getPort()
Gets the port number that the daemon is listening on.

Specified by:
getPort in interface ServerService


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.