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:
service
in interfaceSocketService
- Throws:
ServiceException
IOException
-
init
Pulls out the access log information- Specified by:
init
in interfaceServerService
- Parameters:
props
-- Throws:
ServiceException
Exception
-
start
- Specified by:
start
in interfaceServerService
- Throws:
ServiceException
-
stop
- Specified by:
stop
in interfaceServerService
- Throws:
ServiceException
-
getName
Gets the name of the service. Used for display purposes only- Specified by:
getName
in interfaceSocketService
-
getIP
Gets the ip number that the daemon is listening on.- Specified by:
getIP
in interfaceServerService
-
getPort
public int getPort()Gets the port number that the daemon is listening on.- Specified by:
getPort
in interfaceServerService
-