public class MainResponse extends ActionResponse implements ToXContentObject
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
MainResponse(java.lang.String nodeName,
Version version,
ClusterName clusterName,
java.lang.String clusterUuid,
Build build,
boolean available) |
Modifier and Type | Method and 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.
|
remoteAddress, remoteAddress
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
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 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