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() |
unwrap
public 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.Exception
public void start() throws ServiceException
ServiceException
public void stop() throws ServiceException
ServiceException
public java.lang.String getIP()
public int getPort()
public java.lang.String getBind()
public void service(java.net.Socket socket) throws ServiceException, java.io.IOException
ServiceException
java.io.IOException
public void service(java.io.InputStream in, java.io.OutputStream out) throws ServiceException, java.io.IOException
ServiceException
java.io.IOException
public java.lang.String getName()
protected java.lang.Object getDelegate()
getDelegate
in class UnwrappbleServerService
public java.net.URI getServiceUri()
public boolean isSecure()
public java.net.ServerSocket getServerSocket()