public abstract class AbstractServiceManager extends Object implements IServiceManager
Modifier and Type | Method and Description |
---|---|
protected Logger |
getLogger()
Replies the logger.
|
protected abstract void |
internalStartAllServices()
Start all the services whatever the dependencies between the services.
|
protected abstract void |
internalStopAllServices()
Stop all the services whatever the dependencies between the services.
|
protected void |
preStop(logger : Logger)
Pre-stop all the services that are implemented {@link
|
protected void |
setLogger(logger : Logger)
Change the logger.
|
void |
startServices(logger : Logger)
Start the services associated to the service manager.
|
void |
stopServices(logger : Logger)
Stop the services associated to the service manager.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
awaitHealthy, awaitStopped, getService, getServicesByState
@Pure
protected def
getLogger() : Logger
AbstractServiceManager
protected def
setLogger(logger : Logger) : void
AbstractServiceManager
logger
- the new logger.public def
startServices(logger : Logger) : void
IServiceManager
This starting function supports the prioritized services
.
startServices
in interface IServiceManager
logger
- the logger to use for any information message.public def
stopServices(logger : Logger) : void
IServiceManager
This stopping function supports the prioritized services
.
stopServices
in interface IServiceManager
logger
- the logger to use for any information message.protected def
preStop(logger : Logger) : void
AbstractServiceManager
protected abstract def
internalStartAllServices() : void
AbstractServiceManager
protected abstract def
internalStopAllServices() : void
AbstractServiceManager
Copyright © 2021 the original authors or authors.