Package org.elasticsearch.discovery.zen
Class ZenPing.PingResponse
- java.lang.Object
-
- org.elasticsearch.discovery.zen.ZenPing.PingResponse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description PingResponse(DiscoveryNode node, DiscoveryNode master, ClusterState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterNameclusterName()the name of the cluster this node belongs tolonggetClusterStateVersion()the current cluster state version of that node (ElectMasterService.MasterCandidate.UNRECOVERED_CLUSTER_VERSIONfor not recovered)longid()an always increasing unique identifier for this ping response.DiscoveryNodemaster()the current master of the nodeDiscoveryNodenode()the node which this ping describesjava.lang.StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Constructor Detail
-
PingResponse
public PingResponse(DiscoveryNode node, DiscoveryNode master, ClusterState state)
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:WriteableWrite this into the StreamOutput.
-
id
public long id()
an always increasing unique identifier for this ping response. lower values means older pings.
-
clusterName
public ClusterName clusterName()
the name of the cluster this node belongs to
-
node
public DiscoveryNode node()
the node which this ping describes
-
master
public DiscoveryNode master()
the current master of the node
-
getClusterStateVersion
public long getClusterStateVersion()
the current cluster state version of that node (ElectMasterService.MasterCandidate.UNRECOVERED_CLUSTER_VERSIONfor not recovered)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-