public static class ElectMasterService.MasterCandidate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
UNRECOVERED_CLUSTER_VERSION |
Constructor and Description |
---|
MasterCandidate(DiscoveryNode node,
long clusterStateVersion) |
Modifier and Type | Method and Description |
---|---|
static int |
compare(ElectMasterService.MasterCandidate c1,
ElectMasterService.MasterCandidate c2)
compares two candidates to indicate which the a better master.
|
long |
getClusterStateVersion() |
DiscoveryNode |
getNode() |
java.lang.String |
toString() |
public static final long UNRECOVERED_CLUSTER_VERSION
public MasterCandidate(DiscoveryNode node, long clusterStateVersion)
public DiscoveryNode getNode()
public long getClusterStateVersion()
public java.lang.String toString()
toString
in class java.lang.Object
public static int compare(ElectMasterService.MasterCandidate c1, ElectMasterService.MasterCandidate c2)