public class ServiceDaemon extends UnwrappbleServerService
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceDaemon.AddressMonitor |
class |
ServiceDaemon.SocketMonitor |
| Constructor and Description |
|---|
ServiceDaemon(ServerService next) |
ServiceDaemon(ServerService next,
int port,
java.lang.String ip) |
| Modifier and Type | Method and Description |
|---|---|
static java.net.InetAddress |
getAddress(java.lang.String host) |
java.lang.String |
getBind() |
protected java.lang.Object |
getDelegate() |
java.net.InetAddress |
getInetAddress()
Gets the inetAddress number that the
daemon is listening on.
|
java.lang.String |
getIP() |
java.lang.String |
getName() |
int |
getPort()
Gets the port number that the
daemon is listening on.
|
java.net.ServerSocket |
getServerSocket() |
java.net.URI |
getServiceUri() |
void |
init(java.util.Properties props) |
boolean |
isSecure() |
void |
service(java.io.InputStream in,
java.io.OutputStream out) |
void |
service(java.net.Socket socket) |
void |
start() |
void |
stop() |
unwrappublic ServiceDaemon(ServerService next)
public ServiceDaemon(ServerService next, int port, java.lang.String ip)
public static java.net.InetAddress getAddress(java.lang.String host)
public java.net.InetAddress getInetAddress()
public void init(java.util.Properties props)
throws java.lang.Exception
java.lang.Exceptionpublic void start()
throws ServiceException
ServiceExceptionpublic void stop()
throws ServiceException
ServiceExceptionpublic java.lang.String getIP()
public int getPort()
public java.lang.String getBind()
public void service(java.net.Socket socket)
throws ServiceException,
java.io.IOException
ServiceExceptionjava.io.IOExceptionpublic void service(java.io.InputStream in,
java.io.OutputStream out)
throws ServiceException,
java.io.IOException
ServiceExceptionjava.io.IOExceptionpublic java.lang.String getName()
protected java.lang.Object getDelegate()
getDelegate in class UnwrappbleServerServicepublic java.net.URI getServiceUri()
public boolean isSecure()
public java.net.ServerSocket getServerSocket()