public class SnapshotShardFailure extends Objectimplements ShardOperationFailedException
| Constructor and Description |
|---|
SnapshotShardFailure(String
Constructs new snapshot shard failure object
|
| Modifier and Type | Method and Description |
|---|---|
static SnapshotShardFailure |
fromXContent(XContentParser
Deserializes snapshot failure information from JSON
|
String |
index()
Returns index where failure occurred
|
String |
nodeId()
Returns node id where failure occurred
|
void |
readFrom(StreamInput
|
static SnapshotShardFailure |
readSnapshotShardFailure(StreamInput
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
Serializes snapshot failure information into JSON
|
void |
writeTo(StreamOutput
|
public Stringindex()
index in interface
ShardOperationFailedException
public int shardId()
shardId in interface
ShardOperationFailedException
public Stringreason()
reason in interface
ShardOperationFailedException
public RestStatusstatus()
status in interface
ShardOperationFailedException
public static SnapshotShardFailurereadSnapshotShardFailure(StreamInput in) throws IOException
in - stream input
IOException -
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
IOException
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
IOException
public StringtoString()
public static void toXContent(SnapshotShardFailuresnapshotShardFailure, XContentBuilder builder, ToXContent .Params params) throws IOException
snapshotShardFailure - snapshot failure information
builder - XContent builder
params - additional parameters
IOException -
public static SnapshotShardFailurefromXContent(XContentParser parser) throws IOException
parser - JSON parser
IOException -