| Package | Description |
|---|---|
| org.apache.hadoop.service |
Support for services.
|
| Modifier and Type | Field | Description |
|---|---|---|
Service.STATE |
LifecycleEvent.state |
new state
|
| Modifier and Type | Method | Description |
|---|---|---|
Service.STATE |
ServiceStateModel.enterState(Service.STATE proposed) |
Enter a state -thread safe.
|
Service.STATE |
AbstractService.getFailureState() |
|
Service.STATE |
Service.getFailureState() |
Get the state in which the failure in
Service.getFailureCause() occurred. |
Service.STATE |
AbstractService.getServiceState() |
|
Service.STATE |
Service.getServiceState() |
Get the current service state
|
Service.STATE |
ServiceStateModel.getState() |
Query the service 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 | Description |
|---|---|---|
static void |
ServiceStateModel.checkStateTransition(java.lang.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 |
AbstractService.isInState(Service.STATE expected) |
|
boolean |
Service.isInState(Service.STATE state) |
Query to see if the service is in a specific state.
|
boolean |
ServiceStateModel.isInState(Service.STATE proposed) |
Query that the state is in a specific state
|
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 | Description |
|---|---|
ServiceStateModel(java.lang.String name,
Service.STATE state) |
Create a service state model instance in the chosen state
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.