public class RestoreInfo extends Object implements ToXContent, Streamable
Returned as part of RestoreSnapshotResponse
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
RestoreInfo(String name,
List<String> indices,
int totalShards,
int successfulShards) |
Modifier and Type | Method and Description |
---|---|
int |
failedShards()
Number of failed shards
|
List<String> |
indices()
List of restored indices
|
String |
name()
Snapshot name
|
void |
readFrom(StreamInput in) |
static RestoreInfo |
readOptionalRestoreInfo(StreamInput in)
Reads optional restore info from
StreamInput |
static RestoreInfo |
readRestoreInfo(StreamInput in)
Reads restore info from
StreamInput |
RestStatus |
status()
REST status of the operation
|
int |
successfulShards()
Number of successful shards
|
int |
totalShards()
Number of shards being restored
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public String name()
public int totalShards()
public int failedShards()
public int successfulShards()
public RestStatus status()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
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 static RestoreInfo readRestoreInfo(StreamInput in) throws IOException
StreamInput
in
- stream inputIOException
public static RestoreInfo readOptionalRestoreInfo(StreamInput in) throws IOException
StreamInput
in
- stream inputIOException
Copyright © 2009–2016. All rights reserved.