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.Empty
Nested 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.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic ShardsAcknowledgedResponse
protected static org.elasticsearch.common.xcontent.ParseField
Fields inherited from class org.elasticsearch.action.support.master.AcknowledgedResponse
acknowledged, FALSE, TRUE
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ModifierConstructorDescriptionprotected
ShardsAcknowledgedResponse(boolean acknowledged, boolean shardsAcknowledged)
protected
ShardsAcknowledgedResponse(StreamInput in, boolean readShardsAcknowledged, boolean readAcknowledged)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCustomFields(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)
boolean
int
hashCode()
boolean
Returns true if the requisite number of shards were started before returning from the index creation operation.static ShardsAcknowledgedResponse
of(boolean acknowledged, boolean shardsAcknowledged)
protected void
Methods inherited from class org.elasticsearch.action.support.master.AcknowledgedResponse
declareAcknowledgedField, fromXContent, isAcknowledged, of, readFrom, toXContent, writeTo
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
addCustomFields
in classAcknowledgedResponse
- Throws:
IOException
-
equals
- Overrides:
equals
in classAcknowledgedResponse
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAcknowledgedResponse
-