public static class ActionWriteResponse.ShardInfo.Failure extends Object implements ShardOperationFailedException, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ActionWriteResponse.ShardInfo.Failure(String index,
int shardId,
String nodeId,
Throwable cause,
RestStatus status,
boolean primary) |
| Modifier and Type | Method and Description |
|---|---|
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 ActionWriteResponse.ShardInfo.Failure(String index, int shardId, @Nullable String nodeId, Throwable cause, RestStatus status, boolean primary)
public String index()
ShardOperationFailedExceptionindex in interface ShardOperationFailedExceptionpublic int shardId()
ShardOperationFailedExceptionshardId in interface ShardOperationFailedExceptionpublic String reason()
ShardOperationFailedExceptionreason in interface ShardOperationFailedExceptionpublic RestStatus status()
ShardOperationFailedExceptionstatus in interface ShardOperationFailedExceptionpublic Throwable getCause()
ShardOperationFailedExceptiongetCause in interface ShardOperationFailedExceptionpublic boolean primary()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.