public class ClusterStatsResponse extends BaseNodesResponse<ClusterStatsNodeResponse> implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ClusterStatsResponse(long timestamp,
ClusterName clusterName,
java.util.List<ClusterStatsNodeResponse> nodes,
java.util.List<FailedNodeException> failures) |
| Modifier and Type | Method and 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, hasFailuresremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic 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
StreamablereadFrom in interface StreamablereadFrom in class BaseNodesResponse<ClusterStatsNodeResponse>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class BaseNodesResponse<ClusterStatsNodeResponse>java.io.IOExceptionprotected java.util.List<ClusterStatsNodeResponse> readNodesFrom(StreamInput in) throws java.io.IOException
BaseNodesResponseBaseNodesResponse.nodes from the stream.readNodesFrom in class BaseNodesResponse<ClusterStatsNodeResponse>null.java.io.IOExceptionprotected void writeNodesTo(StreamOutput out, java.util.List<ClusterStatsNodeResponse> nodes) throws java.io.IOException
BaseNodesResponseBaseNodesResponse.nodes to the stream.writeNodesTo in class BaseNodesResponse<ClusterStatsNodeResponse>java.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object