org.apache.openejb.server
Class ServiceDaemon
java.lang.Object
org.apache.openejb.server.ServiceDaemon
- All Implemented Interfaces:
- ServerService, Service
public class ServiceDaemon
- extends Object
- implements ServerService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceDaemon
public ServiceDaemon(ServerService next)
ServiceDaemon
public ServiceDaemon(ServerService next,
int port,
String ip)
getAddress
public static InetAddress getAddress(String host)
getInetAddress
public InetAddress getInetAddress()
- Gets the inetAddress number that the
daemon is listening on.
init
public void init(Properties props)
throws Exception
- Specified by:
init in interface Service
- Throws:
Exception
start
public void start()
throws ServiceException
- Specified by:
start in interface ServerService
- Throws:
ServiceException
stop
public void stop()
throws ServiceException
- Specified by:
stop in interface ServerService
- Throws:
ServiceException
getIP
public String getIP()
- Specified by:
getIP in interface ServerService
getPort
public int getPort()
- Gets the port number that the
daemon is listening on.
- Specified by:
getPort in interface ServerService
getBind
public String getBind()
service
public void service(Socket socket)
throws ServiceException,
IOException
- Specified by:
service in interface ServerService
- Throws:
ServiceException
IOException
service
public void service(InputStream in,
OutputStream out)
throws ServiceException,
IOException
- Specified by:
service in interface ServerService
- Throws:
ServiceException
IOException
getName
public String getName()
- Specified by:
getName in interface ServerService
getServiceUri
public URI getServiceUri()
isSecure
public boolean isSecure()
getServerSocket
public ServerSocket getServerSocket()
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.