Streamable
, Writeable
, ToXContent
, ToXContentObject
public class MainResponse extends ActionResponse implements ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TransportResponse.Empty
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Constructor | Description |
---|---|
MainResponse(java.lang.String nodeName,
Version version,
ClusterName clusterName,
java.lang.String clusterUuid,
Build build,
boolean available) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
static MainResponse |
fromXContent(XContentParser parser) |
|
Build |
getBuild() |
|
ClusterName |
getClusterName() |
|
java.lang.String |
getClusterUuid() |
|
java.lang.String |
getNodeName() |
|
Version |
getVersion() |
|
int |
hashCode() |
|
boolean |
isAvailable() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
newWriteableReader
isFragment
remoteAddress, remoteAddress
public MainResponse(java.lang.String nodeName, Version version, ClusterName clusterName, java.lang.String clusterUuid, Build build, boolean available)
public java.lang.String getNodeName()
public Version getVersion()
public ClusterName getClusterName()
public java.lang.String getClusterUuid()
public Build getBuild()
public boolean isAvailable()
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class ActionResponse
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static MainResponse fromXContent(XContentParser parser)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object