Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Field and Description |
---|---|
(package private) Service.State |
AbstractService.StateSnapshot.state
The internal state, which equals external state unless shutdownWhenStartupFinishes is true.
|
Modifier and Type | Field and Description |
---|---|
(package private) SetMultimap<Service.State,Service> |
ServiceManager.ServiceManagerState.servicesByState |
(package private) Multiset<Service.State> |
ServiceManager.ServiceManagerState.states |
Modifier and Type | Method and Description |
---|---|
(package private) Service.State |
AbstractService.StateSnapshot.externalState() |
Service.State |
AbstractExecutionThreadService.state() |
Service.State |
AbstractService.state() |
Service.State |
Service.state()
Returns the lifecycle state of the service.
|
Service.State |
AbstractIdleService.state() |
Service.State |
AbstractScheduledService.state() |
static Service.State |
Service.State.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Service.State[] |
Service.State.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
ImmutableMultimap<Service.State,Service> |
ServiceManager.servicesByState()
Provides a snapshot of the current state of all the services under management.
|
(package private) ImmutableMultimap<Service.State,Service> |
ServiceManager.ServiceManagerState.servicesByState() |
Modifier and Type | Method and Description |
---|---|
private void |
AbstractService.checkCurrentState(Service.State expected)
Checks that the current state is equal to the expected state.
|
void |
ServiceManager.ServiceListener.failed(Service.State from,
java.lang.Throwable failure) |
private void |
AbstractService.failed(Service.State from,
java.lang.Throwable cause) |
void |
Service.Listener.failed(Service.State from,
java.lang.Throwable failure)
Called when the service transitions to the FAILED state.
|
void |
ServiceManager.ServiceListener.stopping(Service.State from) |
private void |
AbstractService.stopping(Service.State from) |
void |
Service.Listener.stopping(Service.State from)
Called when the service transitions to the STOPPING state.
|
private static ListenerCallQueue.Callback<Service.Listener> |
AbstractService.stoppingCallback(Service.State from) |
void |
ServiceManager.ServiceListener.terminated(Service.State from) |
private void |
AbstractService.terminated(Service.State from) |
void |
Service.Listener.terminated(Service.State from)
Called when the service transitions to the TERMINATED state.
|
private static ListenerCallQueue.Callback<Service.Listener> |
AbstractService.terminatedCallback(Service.State from) |
(package private) void |
ServiceManager.ServiceManagerState.transitionService(Service service,
Service.State from,
Service.State to)
Updates the state with the given service transition.
|
Constructor and Description |
---|
StateSnapshot(Service.State internalState) |
StateSnapshot(Service.State internalState,
boolean shutdownWhenStartupFinishes,
java.lang.Throwable failure) |