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


Nested Class Summary
 class ServiceDaemon.AddressMonitor
           
 class ServiceDaemon.SocketMonitor
           
 
Constructor Summary
ServiceDaemon(ServerService next)
           
ServiceDaemon(ServerService next, int port, String ip)
           
 
Method Summary
static InetAddress getAddress(String host)
           
 String getBind()
           
 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()
           
 
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)

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.