Package org.apache.activeio.xnet
Class ServicePool
java.lang.Object
org.apache.activeio.xnet.ServicePool
- All Implemented Interfaces:
ServerService,SocketService
-
Constructor Summary
ConstructorsConstructorDescriptionServicePool(ServerService next, String name, int threads, long keepAliveTime) ServicePool(ServerService next, Executor executor) -
Method Summary
-
Constructor Details
-
ServicePool
-
ServicePool
-
-
Method Details
-
service
- Specified by:
servicein interfaceSocketService- Throws:
ServiceExceptionIOException
-
init
Pulls out the access log information- Specified by:
initin interfaceServerService- Parameters:
props-- Throws:
ServiceExceptionException
-
start
- Specified by:
startin interfaceServerService- Throws:
ServiceException
-
stop
- Specified by:
stopin interfaceServerService- Throws:
ServiceException
-
getName
Gets the name of the service. Used for display purposes only- Specified by:
getNamein interfaceSocketService
-
getIP
Gets the ip number that the daemon is listening on.- Specified by:
getIPin interfaceServerService
-
getPort
public int getPort()Gets the port number that the daemon is listening on.- Specified by:
getPortin interfaceServerService
-