@InterfaceAudience.Private public class StandbyState extends HAState
| Constructor and Description |
|---|
StandbyState() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOperation(HAContext context,
NameNode.OperationCategory op)
Check if an operation is supported in a given state.
|
void |
enterState(HAContext context)
Method to be overridden by subclasses to perform steps necessary for
entering a state.
|
void |
exitState(HAContext context)
Method to be overridden by subclasses to perform steps necessary for
exiting a state.
|
void |
prepareToExitState(HAContext context)
Method to be overridden by subclasses to prepare to exit a state.
|
void |
setState(HAContext context,
HAState s)
Move from the existing state to a new state
|
boolean |
shouldPopulateReplQueues() |
getServiceState, prepareToEnterState, setStateInternal, toStringpublic void setState(HAContext context, HAState s) throws ServiceFailedException
HAStatesetState in class HAStatecontext - HA contexts - new stateServiceFailedException - on failure to transition to new state.public void enterState(HAContext context) throws ServiceFailedException
HAStateenterState in class HAStatecontext - HA contextServiceFailedException - on failure to enter the state.public void prepareToExitState(HAContext context) throws ServiceFailedException
HAStateHAState.prepareToEnterState(HAContext)
may subsequently cancel the state transition.prepareToExitState in class HAStatecontext - HA contextServiceFailedException - on precondition failurepublic void exitState(HAContext context) throws ServiceFailedException
HAStateexitState in class HAStatecontext - HA contextServiceFailedException - on failure to enter the state.public void checkOperation(HAContext context, NameNode.OperationCategory op) throws StandbyException
HAStatecheckOperation in class HAStatecontext - HA contextop - Type of the operation.StandbyExceptionpublic boolean shouldPopulateReplQueues()
shouldPopulateReplQueues in class HAStateCopyright © 2013 Apache Software Foundation. All rights reserved.