Class DataStreamsStatsAction.Response
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.core.transport.TransportResponse
org.opensearch.core.action.ActionResponse
org.opensearch.action.support.broadcast.BroadcastResponse
org.opensearch.action.admin.indices.datastream.DataStreamsStatsAction.Response
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
,org.opensearch.core.xcontent.ToXContent
,org.opensearch.core.xcontent.ToXContentObject
- Enclosing class:
DataStreamsStatsAction
Response for Data Streams Stats
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.core.transport.TransportResponse
org.opensearch.core.transport.TransportResponse.Empty
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.opensearch.action.support.broadcast.BroadcastResponse
EMPTY
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionResponse
(int totalShards, int successfulShards, int failedShards, List<org.opensearch.core.action.support.DefaultShardOperationFailedException> shardFailures, int dataStreamCount, int backingIndices, org.opensearch.core.common.unit.ByteSizeValue totalStoreSize, DataStreamsStatsAction.DataStreamStats[] dataStreams) Response
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCustomXContentFields
(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) Override in subclass to add custom fields following the common `_shards` fieldboolean
int
int
org.opensearch.core.common.unit.ByteSizeValue
int
hashCode()
toString()
void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.action.support.broadcast.BroadcastResponse
declareBroadcastFields, getFailedShards, getShardFailures, getStatus, getSuccessfulShards, getTotalShards, toXContent
Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
Response
public Response(int totalShards, int successfulShards, int failedShards, List<org.opensearch.core.action.support.DefaultShardOperationFailedException> shardFailures, int dataStreamCount, int backingIndices, org.opensearch.core.common.unit.ByteSizeValue totalStoreSize, DataStreamsStatsAction.DataStreamStats[] dataStreams) -
Response
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Overrides:
writeTo
in classBroadcastResponse
- Throws:
IOException
-
addCustomXContentFields
protected void addCustomXContentFields(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException Description copied from class:BroadcastResponse
Override in subclass to add custom fields following the common `_shards` field- Overrides:
addCustomXContentFields
in classBroadcastResponse
- Throws:
IOException
-
getDataStreamCount
public int getDataStreamCount() -
getBackingIndices
public int getBackingIndices() -
getTotalStoreSize
public org.opensearch.core.common.unit.ByteSizeValue getTotalStoreSize() -
getDataStreams
-
equals
-
hashCode
public int hashCode() -
toString
-