Streamable, Writeable, ToXContent, ToXContentObjectpublic class MainResponse extends ActionResponse implements ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTransportResponse.EmptyWriteable.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, waitisFragmentremoteAddress, remoteAddresspublic 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
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class ActionResponsejava.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class ActionResponsejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static MainResponse fromXContent(XContentParser parser)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object