@Private public class ActiveState extends HAState
NameNode.OperationCategory.WRITE and
NameNode.OperationCategory.READ.| Constructor | Description |
|---|---|
ActiveState() |
| 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 |
setState(HAContext context,
HAState s) |
Move from the existing state to a new state
|
boolean |
shouldPopulateReplQueues() |
getLastHATransitionTime, getServiceState, prepareToEnterState, prepareToExitState, setStateInternal, toStringpublic void checkOperation(HAContext context, NameNode.OperationCategory op)
HAStatecheckOperation in class HAStatecontext - HA contextop - Type of the operation.public boolean shouldPopulateReplQueues()
shouldPopulateReplQueues in class HAStatepublic 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.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.