primary
public boolean primary()
- Returns:
- Whether this failure occurred on a primary shard. (this only reports true for delete by query)
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObjectpublic static class ReplicationResponse.ShardInfo.Failure extends ShardOperationFailedException implements org.elasticsearch.common.xcontent.ToXContentObject
org.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_PARAMS| Constructor | Description |
|---|---|
Failure(StreamInput in) |
|
Failure(ShardId shardId,
java.lang.String nodeId,
java.lang.Exception cause,
RestStatus status,
boolean primary) |
| Modifier and Type | Method | Description |
|---|---|---|
static ReplicationResponse.ShardInfo.Failure |
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) |
|
ShardId |
fullShardId() |
|
java.lang.String |
nodeId() |
|
boolean |
primary() |
|
org.elasticsearch.common.xcontent.XContentBuilder |
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
getCause, index, reason, shardId, statusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentjava.io.IOExceptionWriteabletoXContent in interface org.elasticsearch.common.xcontent.ToXContentjava.io.IOExceptionjava.io.IOException