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
Modifier and Type Method Description ClusterName
clusterName()
the name of the cluster this node belongs tolong
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 nodeDiscoveryNode
node()
the node which this ping describesjava.lang.String
toString()
void
writeTo(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:Writeable
Write 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_VERSION
for not recovered)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-