public static class ActionWriteResponse.ShardInfo.Failure extends Object implements ShardOperationFailedException, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| コンストラクタと説明 |
|---|
Failure(String index,
int shardId,
String nodeId,
Throwable cause,
RestStatus status,
boolean primary) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Throwable |
getCause()
The cause of this failure.
|
String |
index()
The index the operation failed on.
|
String |
nodeId() |
boolean |
primary() |
void |
readFrom(StreamInput in) |
String |
reason()
The reason of the failure.
|
int |
shardId()
The shard the operation failed on.
|
RestStatus |
status()
The status of the failure.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public Failure(String index, int shardId, @Nullable String nodeId, Throwable cause, RestStatus status, boolean primary)
public String index()
ShardOperationFailedExceptionindex インタフェース内 ShardOperationFailedExceptionpublic int shardId()
ShardOperationFailedExceptionshardId インタフェース内 ShardOperationFailedExceptionpublic String reason()
ShardOperationFailedExceptionreason インタフェース内 ShardOperationFailedExceptionpublic RestStatus status()
ShardOperationFailedExceptionstatus インタフェース内 ShardOperationFailedExceptionpublic Throwable getCause()
ShardOperationFailedExceptiongetCause インタフェース内 ShardOperationFailedExceptionpublic boolean primary()
public void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.