Streamable
, Writeable
, ToXContent
, ToXContentFragment
public class ClusterStatsResponse extends BaseNodesResponse<ClusterStatsNodeResponse> implements ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TransportResponse.Empty
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Constructor | Description |
---|---|
ClusterStatsResponse(long timestamp,
ClusterName clusterName,
java.util.List<ClusterStatsNodeResponse> nodes,
java.util.List<FailedNodeException> failures) |
Modifier and Type | Method | Description |
---|---|---|
ClusterStatsIndices |
getIndicesStats() |
|
ClusterStatsNodes |
getNodesStats() |
|
ClusterHealthStatus |
getStatus() |
|
long |
getTimestamp() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
protected java.util.List<ClusterStatsNodeResponse> |
readNodesFrom(StreamInput in) |
Read the
BaseNodesResponse.nodes from the stream. |
java.lang.String |
toString() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
protected void |
writeNodesTo(StreamOutput out,
java.util.List<ClusterStatsNodeResponse> nodes) |
Write the
BaseNodesResponse.nodes to the stream. |
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
failures, getClusterName, getNodes, getNodesMap, hasFailures
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
remoteAddress, remoteAddress
public ClusterStatsResponse(long timestamp, ClusterName clusterName, java.util.List<ClusterStatsNodeResponse> nodes, java.util.List<FailedNodeException> failures)
public long getTimestamp()
public ClusterHealthStatus getStatus()
public ClusterStatsNodes getNodesStats()
public ClusterStatsIndices getIndicesStats()
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class BaseNodesResponse<ClusterStatsNodeResponse>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class BaseNodesResponse<ClusterStatsNodeResponse>
java.io.IOException
protected java.util.List<ClusterStatsNodeResponse> readNodesFrom(StreamInput in) throws java.io.IOException
BaseNodesResponse
BaseNodesResponse.nodes
from the stream.readNodesFrom
in class BaseNodesResponse<ClusterStatsNodeResponse>
null
.java.io.IOException
protected void writeNodesTo(StreamOutput out, java.util.List<ClusterStatsNodeResponse> nodes) throws java.io.IOException
BaseNodesResponse
BaseNodesResponse.nodes
to the stream.writeNodesTo
in class BaseNodesResponse<ClusterStatsNodeResponse>
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object