public static class RegionStates.ServerStateNode extends Object implements Comparable<RegionStates.ServerStateNode>
Modifier and Type | Field and Description |
---|---|
private Set<RegionStates.RegionStateNode> |
regions |
private RegionStates.ServerReportEvent |
reportEvent |
private ServerName |
serverName |
private RegionStates.ServerState |
state |
Constructor and Description |
---|
ServerStateNode(ServerName serverName) |
Modifier and Type | Method and Description |
---|---|
void |
addRegion(RegionStates.RegionStateNode regionNode) |
int |
compareTo(RegionStates.ServerStateNode other) |
boolean |
equals(Object other) |
int |
getRegionCount() |
ArrayList<RegionInfo> |
getRegionInfoList() |
Set<RegionStates.RegionStateNode> |
getRegions() |
ProcedureEvent<?> |
getReportEvent() |
ServerName |
getServerName() |
RegionStates.ServerState |
getState() |
int |
hashCode() |
boolean |
isInState(RegionStates.ServerState... expected) |
void |
removeRegion(RegionStates.RegionStateNode regionNode) |
private void |
setState(RegionStates.ServerState state) |
String |
toString() |
private final RegionStates.ServerReportEvent reportEvent
private final Set<RegionStates.RegionStateNode> regions
private final ServerName serverName
private volatile RegionStates.ServerState state
public ServerStateNode(ServerName serverName)
public ServerName getServerName()
public RegionStates.ServerState getState()
public ProcedureEvent<?> getReportEvent()
public boolean isInState(RegionStates.ServerState... expected)
private void setState(RegionStates.ServerState state)
public Set<RegionStates.RegionStateNode> getRegions()
public int getRegionCount()
public ArrayList<RegionInfo> getRegionInfoList()
public void addRegion(RegionStates.RegionStateNode regionNode)
public void removeRegion(RegionStates.RegionStateNode regionNode)
public int compareTo(RegionStates.ServerStateNode other)
compareTo
in interface Comparable<RegionStates.ServerStateNode>
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.