@Private public class BackupState extends HAState
| Constructor | Description |
|---|---|
BackupState() |
| Modifier and Type | Method | 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() |
getLastHATransitionTime, getServiceState, prepareToEnterState, setState, setStateInternal, toStringpublic void checkOperation(HAContext context, NameNode.OperationCategory op) throws org.apache.hadoop.ipc.StandbyException
HAStatecheckOperation in class HAStatecontext - HA contextop - Type of the operation.org.apache.hadoop.ipc.StandbyException - if a given type of operation is not
supported in standby statepublic boolean shouldPopulateReplQueues()
shouldPopulateReplQueues in class HAStatepublic void enterState(HAContext context) throws org.apache.hadoop.ha.ServiceFailedException
HAStateenterState in class HAStatecontext - HA contextorg.apache.hadoop.ha.ServiceFailedException - on failure to enter the state.public void exitState(HAContext context) throws org.apache.hadoop.ha.ServiceFailedException
HAStatepublic void prepareToExitState(HAContext context) throws org.apache.hadoop.ha.ServiceFailedException
HAStateHAState.prepareToEnterState(HAContext)
may subsequently cancel the state transition.prepareToExitState in class HAStatecontext - HA contextorg.apache.hadoop.ha.ServiceFailedException - on precondition failureCopyright © 2008–2025 Apache Software Foundation. All rights reserved.