ShardOperationFailedException, Streamable, ToXContentIndicesShardStoresResponse.Failurepublic class DefaultShardOperationFailedException extends java.lang.Object implements ShardOperationFailedException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier | Constructor | Description |
|---|---|---|
protected |
DefaultShardOperationFailedException() |
|
|
DefaultShardOperationFailedException(java.lang.String index,
int shardId,
java.lang.Throwable reason) |
|
|
DefaultShardOperationFailedException(ElasticsearchException e) |
| Modifier and Type | Method | Description |
|---|---|---|
static DefaultShardOperationFailedException |
fromXContent(XContentParser parser) |
|
java.lang.Throwable |
getCause() |
The cause of this failure
|
java.lang.String |
index() |
The index the operation failed on.
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
static DefaultShardOperationFailedException |
readShardOperationFailed(StreamInput in) |
|
java.lang.String |
reason() |
The reason of the failure.
|
int |
shardId() |
The index the operation failed on.
|
RestStatus |
status() |
The status of the failure.
|
java.lang.String |
toString() |
|
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, wait, wait, waitisFragmentprotected DefaultShardOperationFailedException()
public DefaultShardOperationFailedException(ElasticsearchException e)
public DefaultShardOperationFailedException(java.lang.String index,
int shardId,
java.lang.Throwable reason)
public java.lang.String index()
ShardOperationFailedExceptionindex in interface ShardOperationFailedExceptionpublic int shardId()
ShardOperationFailedExceptionshardId in interface ShardOperationFailedExceptionpublic java.lang.String reason()
ShardOperationFailedExceptionreason in interface ShardOperationFailedExceptionpublic RestStatus status()
ShardOperationFailedExceptionstatus in interface ShardOperationFailedExceptionpublic java.lang.Throwable getCause()
ShardOperationFailedExceptiongetCause in interface ShardOperationFailedExceptionpublic static DefaultShardOperationFailedException readShardOperationFailed(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic 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 java.lang.String toString()
toString in class java.lang.Objectpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static DefaultShardOperationFailedException fromXContent(XContentParser parser)