public class SnapshotShardFailure extends Object implements ShardOperationFailedException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| コンストラクタと説明 |
|---|
SnapshotShardFailure(String nodeId,
String index,
int shardId,
String reason)
Constructs new snapshot shard failure object
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static SnapshotShardFailure |
fromXContent(XContentParser parser)
Deserializes snapshot failure information from JSON
|
Throwable |
getCause()
The cause of this failure.
|
String |
index()
Returns index where failure occurred
|
String |
nodeId()
Returns node id where failure occurred
|
void |
readFrom(StreamInput in) |
static SnapshotShardFailure |
readSnapshotShardFailure(StreamInput in)
Reads shard failure information from stream input
|
String |
reason()
Returns reason for the failure
|
int |
shardId()
Returns shard id where failure occurred
|
RestStatus |
status()
Returns REST status corresponding to this failure
|
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) |
public String index()
index インタフェース内 ShardOperationFailedExceptionpublic int shardId()
shardId インタフェース内 ShardOperationFailedExceptionpublic String reason()
reason インタフェース内 ShardOperationFailedExceptionpublic RestStatus status()
status インタフェース内 ShardOperationFailedExceptionpublic Throwable getCause()
ShardOperationFailedExceptiongetCause インタフェース内 ShardOperationFailedExceptionpublic static SnapshotShardFailure readSnapshotShardFailure(StreamInput in) throws IOException
in - stream inputIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionpublic static void toXContent(SnapshotShardFailure snapshotShardFailure, XContentBuilder builder, ToXContent.Params params) throws IOException
snapshotShardFailure - snapshot failure informationbuilder - XContent builderparams - additional parametersIOExceptionpublic static SnapshotShardFailure fromXContent(XContentParser parser) throws IOException
parser - JSON parserIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.