Class DataStreamsStatsAction.Response
java.lang.Object
org.opensearch.transport.TransportMessage
org.opensearch.transport.TransportResponse
org.opensearch.action.ActionResponse
org.opensearch.action.support.broadcast.BroadcastResponse
org.opensearch.action.admin.indices.datastream.DataStreamsStatsAction.Response
- All Implemented Interfaces:
Writeable
,org.opensearch.common.xcontent.ToXContent
,org.opensearch.common.xcontent.ToXContentObject
- Enclosing class:
- DataStreamsStatsAction
public static class DataStreamsStatsAction.Response extends BroadcastResponse
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportResponse
TransportResponse.Empty
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Response(int totalShards, int successfulShards, int failedShards, java.util.List<DefaultShardOperationFailedException> shardFailures, int dataStreamCount, int backingIndices, ByteSizeValue totalStoreSize, DataStreamsStatsAction.DataStreamStats[] dataStreams)
Response(StreamInput in)
-
Method Summary
Modifier and Type Method Description protected void
addCustomXContentFields(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)
Override in subclass to add custom fields following the common `_shards` fieldboolean
equals(java.lang.Object obj)
int
getBackingIndices()
int
getDataStreamCount()
DataStreamsStatsAction.DataStreamStats[]
getDataStreams()
ByteSizeValue
getTotalStoreSize()
int
hashCode()
java.lang.String
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.opensearch.action.support.broadcast.BroadcastResponse
declareBroadcastFields, getFailedShards, getShardFailures, getStatus, getSuccessfulShards, getTotalShards, toXContent
-
Constructor Details
-
Response
public Response(int totalShards, int successfulShards, int failedShards, java.util.List<DefaultShardOperationFailedException> shardFailures, int dataStreamCount, int backingIndices, ByteSizeValue totalStoreSize, DataStreamsStatsAction.DataStreamStats[] dataStreams) -
Response
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBroadcastResponse
- Throws:
java.io.IOException
-
addCustomXContentFields
protected void addCustomXContentFields(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws java.io.IOExceptionDescription copied from class:BroadcastResponse
Override in subclass to add custom fields following the common `_shards` field- Overrides:
addCustomXContentFields
in classBroadcastResponse
- Throws:
java.io.IOException
-
getDataStreamCount
public int getDataStreamCount() -
getBackingIndices
public int getBackingIndices() -
getTotalStoreSize
-
getDataStreams
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-