org.apache.openejb.server
Class SimpleServiceManager

java.lang.Object
  extended by org.apache.openejb.server.ServiceManager
      extended by org.apache.openejb.server.SimpleServiceManager
Direct Known Subclasses:
FilteredServiceManager

public class SimpleServiceManager
extends ServiceManager

Version:
$Rev$ $Date$

Nested Class Summary
static class SimpleServiceManager.SimpleServiceFinder
           
 
Constructor Summary
SimpleServiceManager()
           
SimpleServiceManager(ServiceFinder serviceFinder)
           
 
Method Summary
 ServerService[] getDaemons()
           
 void init()
           
 void start(boolean block)
          Start the services managed by this instance.
 void stop()
           
 
Methods inherited from class org.apache.openejb.server.ServiceManager
accept, get, getManager, getObjectName, initServer, initServers, isEnabled, manage, register, setServiceManager, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServiceManager

public SimpleServiceManager()

SimpleServiceManager

public SimpleServiceManager(ServiceFinder serviceFinder)
Method Detail

init

public void init()
          throws Exception
Specified by:
init in class ServiceManager
Throws:
Exception

start

public void start(boolean block)
           throws ServiceException
Description copied from class: ServiceManager
Start the services managed by this instance.

Services should not be started if ServiceManager.stop() has already been called, in which case a ServiceException should be thrown

Specified by:
start in class ServiceManager
Parameters:
block - A request to block
Throws:
ServiceException - On error or if the manager has been stopped already

stop

public void stop()
          throws ServiceException
Specified by:
stop in class ServiceManager
Throws:
ServiceException

getDaemons

public ServerService[] getDaemons()


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.