Package | Description |
---|---|
org.apache.hadoop.hbase.master | |
org.apache.hadoop.hbase.zookeeper |
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.protobuf.generated.ClusterStatusProtos.RegionState.State protoState)
Convert a protobuf HBaseProtos.RegionState.State to a RegionState.State
|
(package private) static RegionState.State |
RegionStateStore.getRegionState(Result r,
int replicaId)
Pull the region state from a catalog table
Result . |
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 |
---|---|
Map<RegionState.State,List<HRegionInfo>> |
RegionStates.getRegionByStateOfTable(TableName tableName)
Gets current state of all regions of the table.
|
Modifier and Type | Method and Description |
---|---|
RegionState |
RegionStates.createRegionState(HRegionInfo hri,
RegionState.State newState,
ServerName serverName,
ServerName lastHost)
Add a region to RegionStates with the specified state.
|
(package private) static boolean |
RegionStates.isOneOfStates(RegionState regionState,
RegionState.State... states) |
boolean |
RegionStates.isRegionInState(HRegionInfo hri,
RegionState.State... states) |
boolean |
RegionStates.isRegionInState(String encodedName,
RegionState.State... states) |
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)
|
void |
RegionStates.regionOffline(HRegionInfo hri,
RegionState.State expectedState)
A region is offline, won't be in transition any more.
|
private void |
AssignmentManager.regionOffline(HRegionInfo regionInfo,
RegionState.State state)
A region is offline.
|
RegionState |
RegionStates.updateRegionState(HRegionInfo hri,
RegionState.State state)
Update a region state.
|
RegionState |
RegionStates.updateRegionState(HRegionInfo hri,
RegionState.State state,
ServerName serverName)
Update a region state.
|
private RegionState |
RegionStates.updateRegionState(HRegionInfo hri,
RegionState.State state,
ServerName serverName,
long openSeqNum)
Update a region state.
|
RegionState |
RegionStates.updateRegionState(RegionTransition transition,
RegionState.State state)
Update a region state.
|
Constructor and Description |
---|
RegionState(HRegionInfo region,
RegionState.State state) |
RegionState(HRegionInfo region,
RegionState.State state,
long stamp,
ServerName serverName) |
RegionState(HRegionInfo region,
RegionState.State state,
ServerName serverName) |
Modifier and Type | Method and Description |
---|---|
static void |
MetaTableLocator.setMetaLocation(ZooKeeperWatcher 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(ZooKeeperWatcher zookeeper,
ServerName serverName,
RegionState.State state)
Sets the location of
hbase:meta in ZooKeeper to the
specified server address. |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.