@InterfaceAudience.Private public class ServerStateNode extends Object implements Comparable<ServerStateNode>
| Constructor and Description |
|---|
ServerStateNode(ServerName serverName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRegion(RegionStateNode regionNode) |
int |
compareTo(ServerStateNode other) |
boolean |
equals(Object other) |
int |
getRegionCount() |
List<RegionInfo> |
getRegionInfoList() |
ServerName |
getServerName() |
ServerState |
getState() |
List<RegionInfo> |
getSystemRegionInfoList() |
int |
hashCode() |
boolean |
isInState(ServerState... expected) |
Lock |
readLock() |
void |
removeRegion(RegionStateNode regionNode) |
String |
toString() |
Lock |
writeLock() |
public ServerStateNode(ServerName serverName)
public ServerName getServerName()
public ServerState getState()
public boolean isInState(ServerState... expected)
public int getRegionCount()
public List<RegionInfo> getRegionInfoList()
public List<RegionInfo> getSystemRegionInfoList()
public void addRegion(RegionStateNode regionNode)
public void removeRegion(RegionStateNode regionNode)
public Lock readLock()
public Lock writeLock()
public int compareTo(ServerStateNode other)
compareTo in interface Comparable<ServerStateNode>Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.