@InterfaceAudience.Private public class RegionStateStore extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
RegionStateStore.RegionStateVisitor |
| Modifier and Type | Field and Description |
|---|---|
protected static char |
META_REPLICA_ID_DELIMITER
The delimiter for meta columns for replicaIds > 0
|
| Constructor and Description |
|---|
RegionStateStore(MasterServices master) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRegion(HRegionInfo regionInfo) |
void |
deleteRegions(List<HRegionInfo> regions) |
protected RegionState.State |
getRegionState(Result r,
int replicaId)
Pull the region state from a catalog table
Result. |
void |
mergeRegions(HRegionInfo parent,
HRegionInfo hriA,
HRegionInfo hriB,
ServerName serverName) |
void |
splitRegion(HRegionInfo parent,
HRegionInfo hriA,
HRegionInfo hriB,
ServerName serverName) |
void |
start() |
void |
stop() |
protected void |
updateMetaLocation(HRegionInfo regionInfo,
ServerName serverName) |
protected void |
updateRegionLocation(HRegionInfo regionInfo,
RegionState.State state,
Put... put) |
void |
updateRegionLocation(HRegionInfo regionInfo,
RegionState.State state,
ServerName regionLocation,
ServerName lastHost,
long openSeqNum,
long pid) |
void |
updateRegionState(long openSeqNum,
long pid,
RegionState newState,
RegionState oldState) |
protected void |
updateUserRegionLocation(HRegionInfo regionInfo,
RegionState.State state,
ServerName regionLocation,
ServerName lastHost,
long openSeqNum,
long pid) |
void |
visitMeta(RegionStateStore.RegionStateVisitor visitor) |
protected static final char META_REPLICA_ID_DELIMITER
public RegionStateStore(MasterServices master)
public void start()
throws IOException
IOExceptionpublic void stop()
public void visitMeta(RegionStateStore.RegionStateVisitor visitor) throws IOException
IOExceptionpublic void updateRegionLocation(HRegionInfo regionInfo, RegionState.State state, ServerName regionLocation, ServerName lastHost, long openSeqNum, long pid) throws IOException
IOExceptionpublic void updateRegionState(long openSeqNum,
long pid,
RegionState newState,
RegionState oldState)
throws IOException
IOExceptionprotected void updateMetaLocation(HRegionInfo regionInfo, ServerName serverName) throws IOException
IOExceptionprotected void updateUserRegionLocation(HRegionInfo regionInfo, RegionState.State state, ServerName regionLocation, ServerName lastHost, long openSeqNum, long pid) throws IOException
IOExceptionprotected void updateRegionLocation(HRegionInfo regionInfo, RegionState.State state, Put... put) throws IOException
IOExceptionpublic void splitRegion(HRegionInfo parent, HRegionInfo hriA, HRegionInfo hriB, ServerName serverName) throws IOException
IOExceptionpublic void mergeRegions(HRegionInfo parent, HRegionInfo hriA, HRegionInfo hriB, ServerName serverName) throws IOException
IOExceptionpublic void deleteRegion(HRegionInfo regionInfo) throws IOException
IOExceptionpublic void deleteRegions(List<HRegionInfo> regions) throws IOException
IOExceptionprotected RegionState.State getRegionState(Result r, int replicaId)
Result.r - Result to pull the region state fromCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.