org.apache.openejb.server
Class ServiceDaemon

java.lang.Object
  extended by org.apache.openejb.server.ServiceDaemon
All Implemented Interfaces:
ServerService, Service

public class ServiceDaemon
extends Object
implements ServerService


Constructor Summary
ServiceDaemon(ServerService next)
           
ServiceDaemon(ServerService next, int port, String ip)
           
 
Method Summary
 InetAddress getAddress()
          Gets the inetAddress number that the daemon is listening on.
static InetAddress getAddress(String host)
           
 String getIP()
           
 String getName()
           
 int getPort()
          Gets the port number that the daemon is listening on.
 int getSoTimeout()
           
 void init(Properties props)
           
 void service(InputStream in, OutputStream out)
           
 void service(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
 

Constructor Detail

ServiceDaemon

public ServiceDaemon(ServerService next)

ServiceDaemon

public ServiceDaemon(ServerService next,
                     int port,
                     String ip)
Method Detail

getAddress

public static InetAddress getAddress(String host)

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-2013 The Apache OpenEJB development community. All Rights Reserved.