public class GoogleServiceManager extends AbstractServiceManager
Constructor and Description |
---|
GoogleServiceManager(services : Iterable<? extends com.google.common.util.concurrent.Service>,
config : SreConfig) |
GoogleServiceManager(sm : com.google.common.util.concurrent.ServiceManager,
config : SreConfig) |
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.
|
protected void |
internalStartAllServices()
Start all the services whatever the dependencies between the services.
|
protected void |
internalStopAllServices()
Stop all the services whatever the dependencies between the services.
|
getLogger, preStop, setLogger, startServices, stopServices
public new
(sm : com.google.common.util.concurrent.ServiceManager,
config : SreConfig)
sm
- the Google service to use.config
- the configuration.@Pure
public def
getServicesByState() : com.google.common.collect.Multimap<com.google.common.util.concurrent.Service.State,com.google.common.util.concurrent.Service>
IServiceManager
@Pure publicdef
getService(type : Class<T>) : Twith
<T extends com.google.common.util.concurrent.Service>
IServiceManager
type
- the type of the service to search for.public def
awaitHealthy() : void
IServiceManager
protected def
internalStartAllServices() : void
AbstractServiceManager
internalStartAllServices
in class AbstractServiceManager
protected def
internalStopAllServices() : void
AbstractServiceManager
internalStopAllServices
in class AbstractServiceManager
public def
awaitStopped() : void
IServiceManager
Copyright © 2021 the original authors or authors.