org.apache.openejb.server
Class ServiceDaemon
java.lang.Object
org.apache.openejb.server.ServiceDaemon
- All Implemented Interfaces:
- ServerService, Service
public class ServiceDaemon
- extends java.lang.Object
- implements ServerService
Method Summary |
java.net.InetAddress |
getAddress()
Gets the inetAddress number that the
daemon is listening on. |
static java.net.InetAddress |
getAddress(java.lang.String host)
|
java.lang.String |
getIP()
|
java.lang.String |
getName()
|
int |
getPort()
Gets the port number that the
daemon is listening on. |
int |
getSoTimeout()
|
void |
init(java.util.Properties props)
|
void |
service(java.io.InputStream in,
java.io.OutputStream out)
|
void |
service(java.net.Socket socket)
|
void |
setSoTimeout(int timeout)
|
void |
start()
|
void |
stop()
|
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,
java.lang.String ip)
getAddress
public static java.net.InetAddress getAddress(java.lang.String host)
setSoTimeout
public void setSoTimeout(int timeout)
throws java.net.SocketException
- Throws:
java.net.SocketException
getSoTimeout
public int getSoTimeout()
throws java.io.IOException
- Throws:
java.io.IOException
getAddress
public java.net.InetAddress getAddress()
- Gets the inetAddress number that the
daemon is listening on.
init
public void init(java.util.Properties props)
throws java.lang.Exception
- Specified by:
init
in interface Service
- Throws:
java.lang.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 java.lang.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
service
public void service(java.net.Socket socket)
throws ServiceException,
java.io.IOException
- Specified by:
service
in interface ServerService
- Throws:
ServiceException
java.io.IOException
service
public void service(java.io.InputStream in,
java.io.OutputStream out)
throws ServiceException,
java.io.IOException
- Specified by:
service
in interface ServerService
- Throws:
ServiceException
java.io.IOException
getName
public java.lang.String getName()
- Specified by:
getName
in interface ServerService
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.