public class SnapshotShardFailure extends java.lang.Object implements ShardOperationFailedException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
SnapshotShardFailure(java.lang.String nodeId,
ShardId shardId,
java.lang.String reason)
Constructs new snapshot shard failure object
|
| Modifier and Type | Method and Description |
|---|---|
static SnapshotShardFailure |
fromXContent(XContentParser parser)
Deserializes snapshot failure information from JSON
|
java.lang.Throwable |
getCause()
The cause of this failure
|
java.lang.String |
index()
Returns index where failure occurred
|
java.lang.String |
nodeId()
Returns node id where failure occurred
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static SnapshotShardFailure |
readSnapshotShardFailure(StreamInput in)
Reads shard failure information from stream input
|
java.lang.String |
reason()
Returns reason for the failure
|
int |
shardId()
Returns shard id where failure occurred
|
RestStatus |
status()
Returns REST status corresponding to this failure
|
java.lang.String |
toString() |
static void |
toXContent(SnapshotShardFailure snapshotShardFailure,
XContentBuilder builder,
ToXContent.Params params)
Serializes snapshot failure information into JSON
|
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, waitisFragmentpublic java.lang.String index()
index in interface ShardOperationFailedExceptionpublic int shardId()
shardId in interface ShardOperationFailedExceptionpublic java.lang.String reason()
reason in interface ShardOperationFailedExceptionpublic RestStatus status()
status in interface ShardOperationFailedExceptionpublic java.lang.Throwable getCause()
ShardOperationFailedExceptiongetCause in interface ShardOperationFailedException@Nullable public java.lang.String nodeId()
public static SnapshotShardFailure readSnapshotShardFailure(StreamInput in) throws java.io.IOException
in - stream inputjava.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 static void toXContent(SnapshotShardFailure snapshotShardFailure, XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
snapshotShardFailure - snapshot failure informationbuilder - XContent builderparams - additional parametersjava.io.IOExceptionpublic static SnapshotShardFailure fromXContent(XContentParser parser) throws java.io.IOException
parser - JSON parserjava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException