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,
String ip) |
| Modifier and Type | Method and Description |
|---|---|
static InetAddress |
getAddress(String host) |
String |
getBind() |
protected Object |
getDelegate() |
InetAddress |
getInetAddress()
Gets the inetAddress number that the
daemon is listening on.
|
String |
getIP() |
String |
getName() |
int |
getPort()
Gets the port number that the
daemon is listening on.
|
ServerSocket |
getServerSocket() |
URI |
getServiceUri() |
void |
init(Properties props) |
boolean |
isSecure() |
void |
service(InputStream in,
OutputStream out) |
void |
service(Socket socket) |
void |
start() |
void |
stop() |
unwrappublic ServiceDaemon(ServerService next)
public ServiceDaemon(ServerService next, int port, String ip)
public static InetAddress getAddress(String host)
public InetAddress getInetAddress()
public void init(Properties props) throws Exception
Exceptionpublic void start()
throws ServiceException
ServiceExceptionpublic void stop()
throws ServiceException
ServiceExceptionpublic String getIP()
public int getPort()
public String getBind()
public void service(Socket socket) throws ServiceException, IOException
ServiceExceptionIOExceptionpublic void service(InputStream in, OutputStream out) throws ServiceException, IOException
ServiceExceptionIOExceptionpublic String getName()
protected Object getDelegate()
getDelegate in class UnwrappbleServerServicepublic URI getServiceUri()
public boolean isSecure()
public ServerSocket getServerSocket()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.