Package | Description |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.client |
Provides HBase Client
|
org.apache.hadoop.hbase.master | |
org.apache.hadoop.hbase.master.assignment | |
org.apache.hadoop.hbase.master.http | |
org.apache.hadoop.hbase.zookeeper |
Modifier and Type | Field and Description |
---|---|
private RegionState.State |
MetaTableAccessor.ReplicationBarrierResult.state |
Modifier and Type | Method and Description |
---|---|
RegionState.State |
MetaTableAccessor.ReplicationBarrierResult.getState() |
Modifier and Type | Method and Description |
---|---|
private static Put |
MetaTableAccessor.addRegionStateToPut(Put put,
RegionState.State state) |
static void |
MetaTableAccessor.updateRegionState(Connection connection,
RegionInfo ri,
RegionState.State state)
Update state column in hbase:meta.
|
Constructor and Description |
---|
ReplicationBarrierResult(long[] barriers,
RegionState.State state,
List<byte[]> parentRegionNames) |
Modifier and Type | Method and Description |
---|---|
private Pair<RegionState.State,ServerName> |
ZKConnectionRegistry.getStateAndServerName(org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer proto) |
Map<String,RegionState.State> |
HBaseHbck.setRegionStateInMeta(Map<String,RegionState.State> nameOrEncodedName2State) |
Map<String,RegionState.State> |
Hbck.setRegionStateInMeta(Map<String,RegionState.State> nameOrEncodedName2State)
Update region state in Meta only.
|
Modifier and Type | Method and Description |
---|---|
Map<String,RegionState.State> |
HBaseHbck.setRegionStateInMeta(Map<String,RegionState.State> nameOrEncodedName2State) |
Map<String,RegionState.State> |
Hbck.setRegionStateInMeta(Map<String,RegionState.State> nameOrEncodedName2State)
Update region state in Meta only.
|
Modifier and Type | Field and Description |
---|---|
private RegionState.State |
RegionState.state |
Modifier and Type | Method and Description |
---|---|
static RegionState.State |
RegionState.State.convert(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.RegionState.State protoState)
Convert a protobuf HBaseProtos.RegionState.State to a RegionState.State
|
RegionState.State |
RegionState.getState() |
static RegionState.State |
RegionState.State.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RegionState.State[] |
RegionState.State.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static RegionState |
RegionState.createForTesting(RegionInfo region,
RegionState.State state) |
static boolean |
RegionState.isUnassignable(RegionState.State state)
Check if a region state is one of offline states that can't transition to pending_close/closing
(unassign/offline)
|
boolean |
RegionState.State.matches(RegionState.State... expected) |
Constructor and Description |
---|
RegionState(RegionInfo region,
RegionState.State state,
long stamp,
ServerName serverName) |
RegionState(RegionInfo region,
RegionState.State state,
long stamp,
ServerName serverName,
long ritDuration) |
RegionState(RegionInfo region,
RegionState.State state,
ServerName serverName) |
Modifier and Type | Field and Description |
---|---|
private static RegionState.State[] |
SplitTableRegionProcedure.EXPECTED_SPLIT_STATES |
private RegionState.State |
RegionStateNode.state
A Region-in-Transition (RIT) moves through states.
|
private static RegionState.State[] |
AssignmentManager.STATES_EXPECTED_ON_ASSIGN |
private static RegionState.State[] |
AssignmentManager.STATES_EXPECTED_ON_CLOSED |
private static RegionState.State[] |
AssignmentManager.STATES_EXPECTED_ON_CLOSING |
private static RegionState.State[] |
AssignmentManager.STATES_EXPECTED_ON_OPEN |
private static RegionState.State[] |
AssignmentManager.STATES_EXPECTED_ON_UNASSIGN_OR_MOVE |
Modifier and Type | Method and Description |
---|---|
static RegionState.State |
RegionStateStore.getRegionState(Result r,
RegionInfo regionInfo)
Pull the region state from a catalog table
Result . |
RegionState.State |
RegionStateNode.getState() |
Modifier and Type | Method and Description |
---|---|
Map<RegionState.State,List<RegionInfo>> |
RegionStates.getRegionByStateOfTable(TableName tableName) |
Modifier and Type | Method and Description |
---|---|
boolean |
RegionStateNode.isInState(RegionState.State... expected)
Notice that, we will return true if
expected is empty. |
boolean |
RegionStates.isRegionInState(RegionInfo regionInfo,
RegionState.State... state) |
private void |
RegionStateStore.mirrorMetaLocation(RegionInfo regionInfo,
ServerName serverName,
RegionState.State state) |
private void |
AssignmentManager.preTransitCheck(RegionStateNode regionNode,
RegionState.State[] expectedStates) |
boolean |
RegionStateNode.setState(RegionState.State update,
RegionState.State... expected) |
boolean |
RegionStateNode.setState(RegionState.State update,
RegionState.State... expected) |
void |
RegionStateNode.transitionState(RegionState.State update,
RegionState.State... expected)
Set new
RegionState.State but only if currently in expected State (if not, throw
UnexpectedStateException . |
void |
RegionStateNode.transitionState(RegionState.State update,
RegionState.State... expected)
Set new
RegionState.State but only if currently in expected State (if not, throw
UnexpectedStateException . |
private void |
AssignmentManager.transitStateAndUpdate(RegionStateNode regionNode,
RegionState.State newState,
RegionState.State... expectedStates) |
private void |
AssignmentManager.transitStateAndUpdate(RegionStateNode regionNode,
RegionState.State newState,
RegionState.State... expectedStates) |
private void |
RegionStateStore.updateRegionLocation(RegionInfo regionInfo,
RegionState.State state,
Put put) |
void |
RegionStates.updateRegionState(RegionInfo regionInfo,
RegionState.State state) |
void |
RegionStateStore.RegionStateVisitor.visitRegionState(Result result,
RegionInfo regionInfo,
RegionState.State state,
ServerName regionLocation,
ServerName lastHost,
long openSeqNum) |
void |
AssignmentManager.RegionMetaLoadingVisitor.visitRegionState(Result result,
RegionInfo regionInfo,
RegionState.State state,
ServerName regionLocation,
ServerName lastHost,
long openSeqNum) |
Modifier and Type | Field and Description |
---|---|
private RegionState.State |
RegionReplicaInfo.regionState |
private RegionState.State |
MetaBrowser.scanRegionState |
Modifier and Type | Method and Description |
---|---|
RegionState.State |
RegionReplicaInfo.getRegionState() |
RegionState.State |
MetaBrowser.getScanRegionState() |
private RegionState.State |
MetaBrowser.resolveScanRegionState(javax.servlet.http.HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
private static Filter |
MetaBrowser.buildScanRegionStateFilter(RegionState.State state) |
Modifier and Type | Method and Description |
---|---|
static void |
MetaTableLocator.setMetaLocation(ZKWatcher zookeeper,
ServerName serverName,
int replicaId,
RegionState.State state)
Sets the location of
hbase:meta in ZooKeeper to the specified server address. |
static void |
MetaTableLocator.setMetaLocation(ZKWatcher zookeeper,
ServerName serverName,
RegionState.State state)
Sets the location of
hbase:meta in ZooKeeper to the specified server address. |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.