public static class ZenPing.PingResponse extends Object implements Streamable
Modifier and Type | Field and Description |
---|---|
static ZenPing.PingResponse[] |
EMPTY |
Constructor and Description |
---|
ZenPing.PingResponse(DiscoveryNode node,
DiscoveryNode master,
ClusterName clusterName,
boolean hasJoinedOnce) |
Modifier and Type | Method and Description |
---|---|
ClusterName |
clusterName() |
boolean |
hasJoinedOnce()
true if the joined has successfully joined the cluster before
|
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) |
static ZenPing.PingResponse |
readPingResponse(StreamInput in) |
String |
toString() |
void |
writeTo(StreamOutput out) |
public static final ZenPing.PingResponse[] EMPTY
public ZenPing.PingResponse(DiscoveryNode node, DiscoveryNode master, ClusterName clusterName, boolean hasJoinedOnce)
node
- the node which this ping describesmaster
- the current master of the nodeclusterName
- the cluster name of the nodehasJoinedOnce
- true if the joined has successfully joined the cluster beforepublic long id()
public ClusterName clusterName()
public DiscoveryNode node()
public DiscoveryNode master()
public boolean hasJoinedOnce()
public static ZenPing.PingResponse readPingResponse(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.