public class ServiceDaemon extends Object implements ServerService
| Constructor and Description |
|---|
ServiceDaemon(SocketService socketService,
InetAddress address,
int port) |
ServiceDaemon(String name,
SocketService socketService,
InetAddress address,
int port) |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getAddress()
Gets the inetAddress number that the
daemon is listening on.
|
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.
|
String |
getServiceName() |
int |
getSoTimeout() |
void |
init(Properties props) |
void |
service(Socket socket) |
void |
setSoTimeout(int timeout) |
void |
start() |
void |
stop() |
public ServiceDaemon(SocketService socketService, InetAddress address, int port)
public ServiceDaemon(String name, SocketService socketService, InetAddress address, int port)
public void setSoTimeout(int timeout)
throws SocketException
SocketExceptionpublic int getSoTimeout()
throws IOException
IOExceptionpublic String getServiceName()
public InetAddress getAddress()
public void init(Properties props) throws Exception
init in interface ServerServiceExceptionpublic void start()
throws ServiceException
start in interface ServerServiceServiceExceptionpublic void stop()
throws ServiceException
stop in interface ServerServiceServiceExceptionpublic String getIP()
ServerServicegetIP in interface ServerServicepublic int getPort()
getPort in interface ServerServicepublic void service(Socket socket) throws ServiceException, IOException
service in interface SocketServiceServiceExceptionIOExceptionpublic String getName()
SocketServicegetName in interface SocketServiceCopyright © 2005–2019. All rights reserved.