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)
getInt
public static int getInt(Properties p,
String property,
int defaultValue)
setSoTimeout
public void setSoTimeout(int timeout)
throws SocketException
- Throws:
SocketException
getSoTimeout
public int getSoTimeout()
throws IOException
- Throws:
IOException
getAddress
public InetAddress getAddress()
- 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
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
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.