public static class ActionWriteResponse.ShardInfo.Failure extends Object implements ShardOperationFailedException, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
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 Failure(String index, int shardId, @Nullable String nodeId, Throwable cause, RestStatus status, boolean primary)
public String index()
ShardOperationFailedException
index
in interface ShardOperationFailedException
public int shardId()
ShardOperationFailedException
shardId
in interface ShardOperationFailedException
public String reason()
ShardOperationFailedException
reason
in interface ShardOperationFailedException
public RestStatus status()
ShardOperationFailedException
status
in interface ShardOperationFailedException
public Throwable getCause()
ShardOperationFailedException
getCause
in interface ShardOperationFailedException
public boolean primary()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.