Uses of Enum Class
org.apache.hadoop.service.Service.STATE
Packages that use Service.STATE
-
Uses of Service.STATE in org.apache.hadoop.service
Fields in org.apache.hadoop.service declared as Service.STATEMethods in org.apache.hadoop.service that return Service.STATEModifier and TypeMethodDescriptionServiceStateModel.enterState(Service.STATE proposed) Enter a state -thread safe.AbstractService.getFailureState()Service.getFailureState()Get the state in which the failure inService.getFailureCause()occurred.final Service.STATEAbstractService.getServiceState()Service.getServiceState()Get the current service stateServiceStateModel.getState()Query the service state.static Service.STATEReturns the enum constant of this class with the specified name.static Service.STATE[]Service.STATE.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.apache.hadoop.service with parameters of type Service.STATEModifier and TypeMethodDescriptionstatic voidServiceStateModel.checkStateTransition(String name, Service.STATE state, Service.STATE proposed) Check that a state tansition is valid and throw an exception if notvoidServiceStateModel.ensureCurrentState(Service.STATE expectedState) Verify that that a service is in a given state.ServiceStateModel.enterState(Service.STATE proposed) Enter a state -thread safe.final booleanAbstractService.isInState(Service.STATE expected) booleanService.isInState(Service.STATE state) Query to see if the service is in a specific state.booleanServiceStateModel.isInState(Service.STATE proposed) Query that the state is in a specific statestatic booleanServiceStateModel.isValidStateTransition(Service.STATE current, Service.STATE proposed) Is a state transition valid?Constructors in org.apache.hadoop.service with parameters of type Service.STATEModifierConstructorDescriptionServiceStateModel(String name, Service.STATE state) Create a service state model instance in the chosen state