Class ServerStateNode
java.lang.Object
org.apache.hadoop.hbase.master.assignment.ServerStateNode
- All Implemented Interfaces:
Comparable<ServerStateNode>
State of Server; list of hosted regions, etc.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ReadWriteLock
private final Set<RegionStateNode>
private final ServerName
private ServerState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRegion
(RegionStateNode regionNode) int
compareTo
(ServerStateNode other) boolean
int
getState()
int
hashCode()
boolean
isInState
(ServerState... expected) readLock()
void
removeRegion
(RegionStateNode regionNode) (package private) void
setState
(ServerState state) toString()
-
Field Details
-
regions
-
serverName
-
lock
-
state
-
-
Constructor Details
-
ServerStateNode
-
-
Method Details
-
getServerName
-
getState
-
isInState
-
setState
-
getRegionCount
-
getRegionInfoList
-
getSystemRegionInfoList
-
addRegion
-
removeRegion
-
readLock
-
writeLock
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ServerStateNode>
-
hashCode
-
equals
-
toString
-