ShardOperationFailedException, Streamable, ToXContent, ToXContentObjectpublic static class ReplicationResponse.ShardInfo.Failure extends java.lang.Object implements ShardOperationFailedException, ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor | Description |
|---|---|
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(XContentParser parser) |
|
ShardId |
fullShardId() |
|
java.lang.Throwable |
getCause() |
The cause of this failure
|
java.lang.String |
index() |
The index the operation failed on.
|
java.lang.String |
nodeId() |
|
boolean |
primary() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
java.lang.String |
reason() |
The reason of the failure.
|
int |
shardId() |
The index the operation failed on.
|
RestStatus |
status() |
The status of the failure.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic Failure(ShardId shardId, @Nullable java.lang.String nodeId, java.lang.Exception cause, RestStatus status, boolean primary)
public java.lang.String index()
ShardOperationFailedExceptionindex in interface ShardOperationFailedExceptionpublic int shardId()
ShardOperationFailedExceptionshardId in interface ShardOperationFailedExceptionpublic ShardId fullShardId()
@Nullable public java.lang.String nodeId()
public java.lang.String reason()
ShardOperationFailedExceptionreason in interface ShardOperationFailedExceptionpublic RestStatus status()
ShardOperationFailedExceptionstatus in interface ShardOperationFailedExceptionpublic java.lang.Throwable getCause()
ShardOperationFailedExceptiongetCause in interface ShardOperationFailedExceptionpublic boolean primary()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static ReplicationResponse.ShardInfo.Failure fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException