public class ClusterStatsResponse extends NodesOperationResponse<ClusterStatsNodeResponse> implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
nodes
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) |
getClusterName, getClusterNameAsString
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, 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 NodesOperationResponse<ClusterStatsNodeResponse>
public Map<String,ClusterStatsNodeResponse> getNodesMap()
getNodesMap
in class NodesOperationResponse<ClusterStatsNodeResponse>
public ClusterStatsNodeResponse getAt(int position)
getAt
in class NodesOperationResponse<ClusterStatsNodeResponse>
public Iterator<ClusterStatsNodeResponse> iterator()
iterator
in interface Iterable<ClusterStatsNodeResponse>
iterator
in class NodesOperationResponse<ClusterStatsNodeResponse>
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class NodesOperationResponse<ClusterStatsNodeResponse>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class NodesOperationResponse<ClusterStatsNodeResponse>
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.