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,
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)
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, 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 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