ServerService, SocketServicepublic class ServicePool extends Object implements ServerService
| Constructor | Description |
|---|---|
ServicePool(ServerService next,
String name,
int threads,
long keepAliveTime) |
|
ServicePool(ServerService next,
Executor executor) |
| Modifier and Type | Method | Description |
|---|---|---|
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() |
public ServicePool(ServerService next, String name, int threads, long keepAliveTime)
public ServicePool(ServerService next, Executor executor)
public void service(Socket socket) throws ServiceException, IOException
service in interface SocketServiceServiceExceptionIOExceptionpublic void init(Properties props) throws Exception
init in interface ServerServiceprops - ServiceExceptionExceptionpublic void start()
throws ServiceException
start in interface ServerServiceServiceExceptionpublic void stop()
throws ServiceException
stop in interface ServerServiceServiceExceptionpublic String getName()
getName in interface SocketServicepublic String getIP()
getIP in interface ServerServicepublic int getPort()
getPort in interface ServerServiceCopyright © 2005–2018. All rights reserved.