public class ClusterStatsResponse extends BaseNodesResponse<ClusterStatsNodeResponse> implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
nodes
headers
EMPTY_PARAMS
Constructor and Description |
---|
ClusterStatsResponse(long timestamp,
ClusterName clusterName,
String clusterUUID,
ClusterStatsNodeResponse[] nodes) |
Modifier and Type | Method and Description |
---|---|
ClusterStatsNodeResponse |
getAt(int position) |
ClusterStatsIndices |
getIndicesStats() |
ClusterStatsNodeResponse[] |
getNodes() |
Map<String,ClusterStatsNodeResponse> |
getNodesMap() |
ClusterStatsNodes |
getNodesStats() |
ClusterHealthStatus |
getStatus() |
long |
getTimestamp() |
Iterator<ClusterStatsNodeResponse> |
iterator() |
void |
readFrom(StreamInput in) |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
failures, getClusterName, getClusterNameAsString
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ClusterStatsResponse(long timestamp, ClusterName clusterName, String clusterUUID, ClusterStatsNodeResponse[] nodes)
public long getTimestamp()
public ClusterHealthStatus getStatus()
public ClusterStatsNodes getNodesStats()
public ClusterStatsIndices getIndicesStats()
public ClusterStatsNodeResponse[] getNodes()
getNodes
in class BaseNodesResponse<ClusterStatsNodeResponse>
public Map<String,ClusterStatsNodeResponse> getNodesMap()
getNodesMap
in class BaseNodesResponse<ClusterStatsNodeResponse>
public ClusterStatsNodeResponse getAt(int position)
getAt
in class BaseNodesResponse<ClusterStatsNodeResponse>
public Iterator<ClusterStatsNodeResponse> iterator()
iterator
in interface Iterable<ClusterStatsNodeResponse>
iterator
in class BaseNodesResponse<ClusterStatsNodeResponse>
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BaseNodesResponse<ClusterStatsNodeResponse>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BaseNodesResponse<ClusterStatsNodeResponse>
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.