@InterfaceAudience.Private public class BackupState extends HAState
| Constructor and Description |
|---|
BackupState() |
| 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.
|
boolean |
shouldPopulateReplQueues() |
getServiceState, prepareToEnterState, setState, setStateInternal, toStringpublic 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 HAStatepublic void enterState(HAContext context) throws ServiceFailedException
HAStateenterState in class HAStatecontext - HA contextServiceFailedException - on failure to enter the state.public void exitState(HAContext context) throws ServiceFailedException
HAStateexitState 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 failureCopyright © 2013 Apache Software Foundation. All rights reserved.