public static class RegionStates.RegionStateNode extends java.lang.Object implements java.lang.Comparable<RegionStates.RegionStateNode>
| Constructor and Description |
|---|
RegionStateNode(RegionInfo regionInfo) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RegionStates.RegionStateNode other) |
boolean |
equals(java.lang.Object other) |
int |
getFormatVersion() |
ServerName |
getLastHost() |
long |
getLastUpdate() |
long |
getOpenSeqNum() |
RegionTransitionProcedure |
getProcedure() |
<any> |
getProcedureEvent() |
RegionInfo |
getRegionInfo() |
ServerName |
getRegionLocation() |
State |
getState() |
TableName |
getTable() |
int |
hashCode() |
boolean |
isInState(State... expected) |
boolean |
isInTransition() |
boolean |
isStuck() |
boolean |
isSystemTable() |
ServerName |
offline()
Put region into OFFLINE mode (set state and clear location).
|
void |
setLastHost(ServerName serverName) |
void |
setOpenSeqNum(long seqId) |
boolean |
setProcedure(RegionTransitionProcedure proc) |
ServerName |
setRegionLocation(ServerName serverName) |
boolean |
setState(State update,
State... expected) |
java.lang.String |
toDescriptiveString() |
RegionState |
toRegionState() |
java.lang.String |
toShortString() |
java.lang.String |
toString() |
void |
transitionState(State update,
State... expected)
Set new
State but only if currently in expected State
(if not, throw UnexpectedStateException. |
boolean |
unsetProcedure(RegionTransitionProcedure proc) |
public boolean setState(State update,
State... expected)
update - new region state this node should be assigned.expected - current state should be in this given list of expected statespublic ServerName offline()
public void transitionState(State update,
State... expected)
throws UnexpectedStateException
State but only if currently in expected State
(if not, throw UnexpectedStateException.UnexpectedStateExceptionpublic boolean isInState(State... expected)
public boolean isStuck()
public boolean isInTransition()
public long getLastUpdate()
public void setLastHost(ServerName serverName)
public void setOpenSeqNum(long seqId)
public ServerName setRegionLocation(ServerName serverName)
public boolean setProcedure(RegionTransitionProcedure proc)
public boolean unsetProcedure(RegionTransitionProcedure proc)
public RegionTransitionProcedure getProcedure()
public <any> getProcedureEvent()
public RegionInfo getRegionInfo()
public TableName getTable()
public boolean isSystemTable()
public ServerName getLastHost()
public ServerName getRegionLocation()
public State getState()
public long getOpenSeqNum()
public int getFormatVersion()
public RegionState toRegionState()
public int compareTo(RegionStates.RegionStateNode other)
compareTo in interface java.lang.Comparable<RegionStates.RegionStateNode>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toShortString()
public java.lang.String toDescriptiveString()