public interface IServiceManager
Modifier and Type | Method and Description |
---|---|
void |
awaitHealthy()
Wait for all the services are started.
|
void |
awaitStopped()
Wait for all the services are stopped.
|
<T extends com.google.common.util.concurrent.Service> |
getService(type : Class<T>)
Replies the service of the given type.
|
com.google.common.collect.Multimap<com.google.common.util.concurrent.Service.State,com.google.common.util.concurrent.Service> |
getServicesByState()
Replies the services by state.
|
void |
startServices(logger : Logger)
Start the services associated to the service manager.
|
void |
stopServices(logger : Logger)
Stop the services associated to the service manager.
|
@Pure
def
getServicesByState() : com.google.common.collect.Multimap<com.google.common.util.concurrent.Service.State,com.google.common.util.concurrent.Service>
IServiceManager
@Puredef
getService(type : Class<T>) : Twith
<T extends com.google.common.util.concurrent.Service>
IServiceManager
type
- the type of the service to search for.def
awaitHealthy() : void
IServiceManager
def
awaitStopped() : void
IServiceManager
def
startServices(logger : Logger) : void
IServiceManager
This starting function supports the prioritized services
.
logger
- the logger to use for any information message.def
stopServices(logger : Logger) : void
IServiceManager
This stopping function supports the prioritized services
.
logger
- the logger to use for any information message.Copyright © 2021 the original authors or authors.