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.intgetPort()Gets the port number that the daemon is listening on.intvoidinit(Properties props) voidvoidsetSoTimeout(int timeout) voidstart()voidstop()
-
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:
initin interfaceServerService- Throws:
Exception
-
start
- Specified by:
startin interfaceServerService- Throws:
ServiceException
-
stop
- Specified by:
stopin interfaceServerService- Throws:
ServiceException
-
getIP
Description copied from interface:ServerServiceGets 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
-
service
- Specified by:
servicein interfaceSocketService- Throws:
ServiceExceptionIOException
-
getName
Description copied from interface:SocketServiceGets the name of the service. Used for display purposes only- Specified by:
getNamein interfaceSocketService
-