Writeable.Reader<V>, Writeable.Writer<V>
Constructor | Description |
---|---|
PingResponse(DiscoveryNode node,
DiscoveryNode master,
ClusterState state) |
Modifier and Type | Method | Description |
---|---|---|
ClusterName |
clusterName() |
the name of the cluster this node belongs to
|
long |
getClusterStateVersion() |
the current cluster state version of that node (
ElectMasterService.MasterCandidate.UNRECOVERED_CLUSTER_VERSION
for not recovered) |
long |
id() |
an always increasing unique identifier for this ping response.
|
DiscoveryNode |
master() |
the current master of the node
|
DiscoveryNode |
node() |
the node which this ping describes
|
java.lang.String |
toString() |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
public PingResponse(DiscoveryNode node, DiscoveryNode master, ClusterState state)
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public long id()
public ClusterName clusterName()
public DiscoveryNode node()
public DiscoveryNode master()
public long getClusterStateVersion()
ElectMasterService.MasterCandidate.UNRECOVERED_CLUSTER_VERSION
for not recovered)public java.lang.String toString()
toString
in class java.lang.Object