org.apache.openejb.server
Class ServicePool

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

public class ServicePool
extends Object
implements ServerService


Constructor Summary
ServicePool(ServerService next, Executor executor)
           
ServicePool(ServerService next, String name, Properties properties)
           
 
Method Summary
 String getIP()
          Gets the ip number that the daemon is listening on.
 String getName()
          Gets the name of the service.
 int getPort()
          Gets the port number that the daemon is listening on.
 void init(Properties props)
          Pulls out the access log information
 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

ServicePool

public ServicePool(ServerService next,
                   String name,
                   Properties properties)

ServicePool

public ServicePool(ServerService next,
                   Executor executor)
Method Detail

service

public void service(InputStream in,
                    OutputStream out)
             throws ServiceException,
                    IOException
Specified by:
service in interface ServerService
Throws:
ServiceException
IOException

service

public void service(Socket socket)
             throws ServiceException,
                    IOException
Specified by:
service in interface ServerService
Throws:
ServiceException
IOException

init

public void init(Properties props)
          throws Exception
Pulls out the access log information

Specified by:
init in interface Service
Parameters:
props -
Throws:
ServiceException
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

getName

public String getName()
Gets the name of the service. Used for display purposes only

Specified by:
getName in interface ServerService

getIP

public String getIP()
Gets the ip number that the daemon is listening on.

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


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.