Package org.apache.activeio.xnet
Class ServiceDaemon
java.lang.Object
org.apache.activeio.xnet.ServiceDaemon
- All Implemented Interfaces:
ServerService
,SocketService
-
Constructor Summary
ConstructorsConstructorDescriptionServiceDaemon
(String name, SocketService socketService, InetAddress address, int port) ServiceDaemon
(SocketService socketService, InetAddress address, int port) -
Method Summary
Modifier and TypeMethodDescriptionGets the inetAddress number that the daemon is listening on.getIP()
Gets the ip number that the daemon is listening on.getName()
Gets the name of the service.int
getPort()
Gets the port number that the daemon is listening on.int
void
init
(Properties props) void
void
setSoTimeout
(int timeout) void
start()
void
stop()
-
Constructor Details
-
ServiceDaemon
-
ServiceDaemon
-
-
Method Details
-
setSoTimeout
- Throws:
SocketException
-
getSoTimeout
- Throws:
IOException
-
getServiceName
-
getAddress
Gets the inetAddress number that the daemon is listening on. -
init
- Specified by:
init
in interfaceServerService
- Throws:
Exception
-
start
- Specified by:
start
in interfaceServerService
- Throws:
ServiceException
-
stop
- Specified by:
stop
in interfaceServerService
- Throws:
ServiceException
-
getIP
Description copied from interface:ServerService
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
-
service
- Specified by:
service
in interfaceSocketService
- Throws:
ServiceException
IOException
-
getName
Description copied from interface:SocketService
Gets the name of the service. Used for display purposes only- Specified by:
getName
in interfaceSocketService
-