primary
public boolean primary()
- Returns:
- Whether this failure occurred on a primary shard. (this only reports true for delete by query)
Serializable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObjectorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>cause, index, reason, statusEMPTY_PARAMSFailure(StreamInput in)Failure(ShardId shardId,
 String nodeId,
 Exception cause,
 RestStatus status,
 boolean primary)fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)nodeId()booleanprimary()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
 org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)getCause, index, reason, shardId, statusaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentIOExceptionWriteablewriteTo in interface WriteableIOExceptiontoXContent in interface org.elasticsearch.common.xcontent.ToXContentIOExceptionIOException