Class CloseIndexResponse
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.core.transport.TransportResponse
org.opensearch.core.action.ActionResponse
org.opensearch.action.support.master.AcknowledgedResponse
org.opensearch.action.support.master.ShardsAcknowledgedResponse
org.opensearch.action.admin.indices.close.CloseIndexResponse
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
,org.opensearch.core.xcontent.ToXContent
,org.opensearch.core.xcontent.ToXContentObject
Transport response for closing an index
- Opensearch.api:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Inner index resultstatic class
Shard Result from Close Index ResponseNested 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.master.ShardsAcknowledgedResponse
SHARDS_ACKNOWLEDGED
Fields inherited from class org.opensearch.action.support.master.AcknowledgedResponse
acknowledged
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionCloseIndexResponse
(boolean acknowledged, boolean shardsAcknowledged, List<CloseIndexResponse.IndexResult> indices) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCustomFields
(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) toString()
void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.action.support.master.ShardsAcknowledgedResponse
declareAcknowledgedAndShardsAcknowledgedFields, equals, hashCode, isShardsAcknowledged, writeShardsAcknowledged
Methods inherited from class org.opensearch.action.support.master.AcknowledgedResponse
declareAcknowledgedField, fromXContent, isAcknowledged, 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
-
CloseIndexResponse
public CloseIndexResponse(boolean acknowledged, boolean shardsAcknowledged, List<CloseIndexResponse.IndexResult> indices)
-
-
Method Details
-
getIndices
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Overrides:
writeTo
in classAcknowledgedResponse
- Throws:
IOException
-
addCustomFields
protected void addCustomFields(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Overrides:
addCustomFields
in classShardsAcknowledgedResponse
- Throws:
IOException
-
toString
-