Package | Description |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.master | |
org.apache.hadoop.hbase.master.assignment | |
org.apache.hadoop.hbase.zookeeper |
Modifier and Type | Method and Description |
---|---|
RegionState.State |
MetaTableAccessor.ReplicationBarrierResult.getState() |
Constructor and Description |
---|
ReplicationBarrierResult(long[] barriers,
RegionState.State state,
List<byte[]> parentRegionNames) |
Modifier and Type | Method and Description |
---|---|
static RegionState.State |
RegionState.State.convert(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)
|
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 |
---|---|
protected static RegionState.State[] |
RegionStates.STATES_EXPECTED_ON_CLOSE |
protected static RegionState.State[] |
RegionStates.STATES_EXPECTED_ON_OPEN |
Modifier and Type | Method and Description |
---|---|
static RegionState.State |
RegionStateStore.getRegionState(Result r,
int replicaId)
Pull the region state from a catalog table
Result . |
RegionState.State |
RegionStates.RegionStateNode.getState() |
Modifier and Type | Method and Description |
---|---|
Map<RegionState.State,List<RegionInfo>> |
RegionStates.getRegionByStateOfTable(TableName tableName) |
Modifier and Type | Method and Description |
---|---|
boolean |
RegionStates.RegionStateNode.isInState(RegionState.State... expected) |
boolean |
RegionStates.isRegionInState(RegionInfo regionInfo,
RegionState.State... state) |
boolean |
RegionStates.RegionStateNode.setState(RegionState.State update,
RegionState.State... expected) |
boolean |
RegionStates.RegionStateNode.setState(RegionState.State update,
RegionState.State... expected) |
void |
RegionStates.RegionStateNode.transitionState(RegionState.State update,
RegionState.State... expected)
Set new
RegionState.State but only if currently in expected State
(if not, throw UnexpectedStateException . |
void |
RegionStates.RegionStateNode.transitionState(RegionState.State update,
RegionState.State... expected)
Set new
RegionState.State but only if currently in expected State
(if not, throw UnexpectedStateException . |
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) |
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–2019 Cloudera. All rights reserved.