org.apache.openejb.server
Class ServicePool

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

public class ServicePool
extends ServerServiceFilter


Nested Class Summary
 class ServicePool.Pool
           
 
Constructor Summary
ServicePool(ServerService next, int threads)
           
ServicePool(ServerService next, int threads, int queue, boolean block)
           
ServicePool(ServerService next, int threadCore, int threads, int queue, boolean block, long keepAliveTime)
           
ServicePool(ServerService next, Properties properties)
           
 
Method Summary
 ThreadPoolExecutor getThreadPool()
           
 void service(InputStream in, OutputStream out)
           
 void service(Socket socket)
           
 
Methods inherited from class org.apache.openejb.server.ServerServiceFilter
getIP, getName, getPort, init, start, 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,
                   Properties properties)

ServicePool

public ServicePool(ServerService next,
                   int threads)

ServicePool

public ServicePool(ServerService next,
                   int threads,
                   int queue,
                   boolean block)

ServicePool

public ServicePool(ServerService next,
                   int threadCore,
                   int threads,
                   int queue,
                   boolean block,
                   long keepAliveTime)
Method Detail

getThreadPool

public ThreadPoolExecutor getThreadPool()

service

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

service

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


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.