public static class ZenPing.PingResponse extends java.lang.Object implements Streamable
Modifier and Type | Field and Description |
---|---|
static ZenPing.PingResponse[] |
EMPTY |
Constructor and Description |
---|
PingResponse(DiscoveryNode node,
DiscoveryNode master,
ClusterState state) |
Modifier and Type | Method and Description |
---|---|
ClusterName |
clusterName() |
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
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static ZenPing.PingResponse |
readPingResponse(StreamInput in) |
java.lang.String |
toString() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public static final ZenPing.PingResponse[] EMPTY
public PingResponse(DiscoveryNode node, DiscoveryNode master, ClusterState state)
public long id()
public ClusterName clusterName()
public DiscoveryNode node()
public DiscoveryNode master()
public long getClusterStateVersion()
ElectMasterService.MasterCandidate.UNRECOVERED_CLUSTER_VERSION
for not recovered)public static ZenPing.PingResponse readPingResponse(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object