public static class ZenPing.PingResponse extends Object implements Streamable
| Modifier and Type | Field and Description |
|---|---|
static ZenPing.PingResponse[] |
EMPTY |
| Constructor and Description |
|---|
PingResponse(DiscoveryNode node,
DiscoveryNode master,
ClusterName clusterName,
boolean hasJoinedOnce) |
| Modifier and Type | Method and Description |
|---|---|
ClusterName |
clusterName() |
Boolean |
hasJoinedOnce()
true if the node has successfully joined the cluster before, null for nodes with a <1.4.0 version
|
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 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()
UNKNOWN_ID if the ping comes from nodes with version <1.4.0.Beta1public ClusterName clusterName()
public DiscoveryNode node()
public DiscoveryNode master()
@Nullable public Boolean hasJoinedOnce()
public static ZenPing.PingResponse readPingResponse(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2016. All rights reserved.