@Private public class StandbyState extends HAState
| Constructor | Description |
|---|---|
StandbyState() |
|
StandbyState(boolean isObserver) |
| 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.
|
void |
setState(HAContext context,
HAState s) |
Move from the existing state to a new state
|
boolean |
shouldPopulateReplQueues() |
|
java.lang.String |
toString() |
getLastHATransitionTime, getServiceState, prepareToEnterState, setStateInternalpublic StandbyState()
public StandbyState(boolean isObserver)
public void setState(HAContext context, HAState s) throws org.apache.hadoop.ha.ServiceFailedException
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 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 failurepublic void exitState(HAContext context) throws org.apache.hadoop.ha.ServiceFailedException
HAStatepublic 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 HAStateCopyright © 2008–2025 Apache Software Foundation. All rights reserved.