public class SimpleServiceManager extends ServiceManager
Modifier and Type | Class and Description |
---|---|
static class |
SimpleServiceManager.SimpleServiceFinder |
Constructor and Description |
---|
SimpleServiceManager() |
SimpleServiceManager(ServiceFinder serviceFinder) |
Modifier and Type | Method and Description |
---|---|
ServerService[] |
getDaemons() |
void |
init() |
void |
start(boolean block)
Start the services managed by this instance.
|
void |
stop() |
accept, get, getManager, getObjectName, initServer, initServers, isEnabled, manage, register, setServiceManager, start
public SimpleServiceManager()
public SimpleServiceManager(ServiceFinder serviceFinder)
public void init() throws java.lang.Exception
init
in class ServiceManager
java.lang.Exception
public void start(boolean block) throws ServiceException
ServiceManager
ServiceManager.stop()
has already been called,
in which case a ServiceException should be thrownstart
in class ServiceManager
block
- A request to blockServiceException
- On error or if the manager has been stopped alreadypublic void stop() throws ServiceException
stop
in class ServiceManager
ServiceException
public ServerService[] getDaemons()