Class ShardsAcknowledgedResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.support.master.AcknowledgedResponse
org.elasticsearch.action.support.master.ShardsAcknowledgedResponse
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject,org.elasticsearch.core.RefCounted
- Direct Known Subclasses:
AddIndexBlockResponse,CloseIndexResponse,CreateIndexResponse,OpenIndexResponse,RolloverResponse
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ShardsAcknowledgedResponseprotected static org.elasticsearch.common.xcontent.ParseFieldFields inherited from class org.elasticsearch.action.support.master.AcknowledgedResponse
acknowledged, FALSE, TRUEFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShardsAcknowledgedResponse(boolean acknowledged, boolean shardsAcknowledged)protectedShardsAcknowledgedResponse(StreamInput in, boolean readShardsAcknowledged, boolean readAcknowledged) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCustomFields(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)protected static <T extends ShardsAcknowledgedResponse>
voiddeclareAcknowledgedAndShardsAcknowledgedFields(org.elasticsearch.common.xcontent.ConstructingObjectParser<T,Void> objectParser)booleaninthashCode()booleanReturns true if the requisite number of shards were started before returning from the index creation operation.static ShardsAcknowledgedResponseof(boolean acknowledged, boolean shardsAcknowledged)protected voidMethods inherited from class org.elasticsearch.action.support.master.AcknowledgedResponse
declareAcknowledgedField, fromXContent, isAcknowledged, of, readFrom, toXContent, writeToMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
SHARDS_ACKNOWLEDGED
protected static final org.elasticsearch.common.xcontent.ParseField SHARDS_ACKNOWLEDGED -
NOT_ACKNOWLEDGED
-
-
Constructor Details
-
ShardsAcknowledgedResponse
protected ShardsAcknowledgedResponse(StreamInput in, boolean readShardsAcknowledged, boolean readAcknowledged) throws IOException- Throws:
IOException
-
ShardsAcknowledgedResponse
protected ShardsAcknowledgedResponse(boolean acknowledged, boolean shardsAcknowledged)
-
-
Method Details
-
declareAcknowledgedAndShardsAcknowledgedFields
protected static <T extends ShardsAcknowledgedResponse> void declareAcknowledgedAndShardsAcknowledgedFields(org.elasticsearch.common.xcontent.ConstructingObjectParser<T,Void> objectParser) -
of
-
isShardsAcknowledged
public boolean isShardsAcknowledged()Returns true if the requisite number of shards were started before returning from the index creation operation. IfAcknowledgedResponse.isAcknowledged()is false, then this also returns false. -
writeShardsAcknowledged
- Throws:
IOException
-
addCustomFields
protected void addCustomFields(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Overrides:
addCustomFieldsin classAcknowledgedResponse- Throws:
IOException
-
equals
- Overrides:
equalsin classAcknowledgedResponse
-
hashCode
public int hashCode()- Overrides:
hashCodein classAcknowledgedResponse
-