Module org.elasticsearch.server
Class ClusterStatsResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.support.nodes.BaseNodesResponse<ClusterStatsNodeResponse>
org.elasticsearch.action.admin.cluster.stats.ClusterStatsResponse
- All Implemented Interfaces:
Writeable,RefCounted,ToXContent,ToXContentFragment
public class ClusterStatsResponse
extends BaseNodesResponse<ClusterStatsNodeResponse>
implements ToXContentFragment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the information about a remote cluster.Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCEDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionClusterStatsResponse(long timestamp, String clusterUUID, ClusterName clusterName, List<ClusterStatsNodeResponse> nodes, List<FailedNodeException> failures, MappingStats mappingStats, AnalysisStats analysisStats, VersionStats versionStats, ClusterSnapshotStats clusterSnapshotStats, Map<String, ClusterStatsResponse.RemoteClusterStats> remoteClustersStats) -
Method Summary
Modifier and TypeMethodDescriptionlongprotected List<ClusterStatsNodeResponse> Read theBaseNodesResponse.nodesfrom the stream.toString()toXContent(XContentBuilder builder, ToXContent.Params params) protected voidwriteNodesTo(StreamOutput out, List<ClusterStatsNodeResponse> nodes) Write theBaseNodesResponse.nodesto the stream.voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodesResponse
failures, getClusterName, getNodes, getNodesMap, hasFailuresMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CCS_TELEMETRY_FIELD_NAME
- See Also:
-
ESQL_TELEMETRY_FIELD_NAME
- See Also:
-
-
Constructor Details
-
ClusterStatsResponse
public ClusterStatsResponse(long timestamp, String clusterUUID, ClusterName clusterName, List<ClusterStatsNodeResponse> nodes, List<FailedNodeException> failures, MappingStats mappingStats, AnalysisStats analysisStats, VersionStats versionStats, ClusterSnapshotStats clusterSnapshotStats, Map<String, ClusterStatsResponse.RemoteClusterStats> remoteClustersStats)
-
-
Method Details
-
getClusterUUID
-
getTimestamp
public long getTimestamp() -
getStatus
-
getNodesStats
-
getIndicesStats
-
getCcsMetrics
-
getRemoteClustersStats
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseNodesResponse<ClusterStatsNodeResponse>- Throws:
IOException
-
readNodesFrom
Description copied from class:BaseNodesResponseRead theBaseNodesResponse.nodesfrom the stream.- Specified by:
readNodesFromin classBaseNodesResponse<ClusterStatsNodeResponse>- Returns:
- Never
null. - Throws:
IOException
-
writeNodesTo
protected void writeNodesTo(StreamOutput out, List<ClusterStatsNodeResponse> nodes) throws IOException Description copied from class:BaseNodesResponseWrite theBaseNodesResponse.nodesto the stream.- Specified by:
writeNodesToin classBaseNodesResponse<ClusterStatsNodeResponse>- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toString
-