public static class ElectMasterService.MasterCandidate
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static long |
UNRECOVERED_CLUSTER_VERSION |
Constructor | Description |
---|---|
MasterCandidate(DiscoveryNode node,
long clusterStateVersion) |
Modifier and Type | Method | 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)