Package | Description |
---|---|
org.apache.hadoop.service |
Modifier and Type | Field and Description |
---|---|
Service.STATE |
LifecycleEvent.state
new state
|
Modifier and Type | Method and Description |
---|---|
Service.STATE |
ServiceStateModel.enterState(Service.STATE proposed)
Enter a state -thread safe.
|
Service.STATE |
Service.getFailureState()
Get the state in which the failure in
Service.getFailureCause() occurred. |
Service.STATE |
AbstractService.getFailureState() |
Service.STATE |
Service.getServiceState()
Get the current service state
|
Service.STATE |
AbstractService.getServiceState() |
Service.STATE |
ServiceStateModel.getState()
Query the service state.
|
static Service.STATE |
Service.STATE.valueOf(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 |
---|---|
static void |
ServiceStateModel.checkStateTransition(String name,
Service.STATE state,
Service.STATE proposed)
Check that a state tansition is valid and
throw an exception if not
|
void |
ServiceStateModel.ensureCurrentState(Service.STATE expectedState)
Verify that that a service is in a given state.
|
Service.STATE |
ServiceStateModel.enterState(Service.STATE proposed)
Enter a state -thread safe.
|
boolean |
ServiceStateModel.isInState(Service.STATE proposed)
Query that the state is in a specific state
|
boolean |
Service.isInState(Service.STATE state)
Query to see if the service is in a specific state.
|
boolean |
AbstractService.isInState(Service.STATE expected) |
static boolean |
ServiceStateModel.isValidStateTransition(Service.STATE current,
Service.STATE proposed)
Is a state transition valid?
There are no checks for current==proposed
as that is considered a non-transition.
|
Constructor and Description |
---|
ServiceStateModel(String name,
Service.STATE state)
Create a service state model instance in the chosen state
|
Copyright © 2017 Apache Software Foundation. All Rights Reserved.