public class RestoreInfo extends Object implements ToXContent, Streamable
Returned as part of RestoreSnapshotResponse
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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 ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic static RestoreInfo readRestoreInfo(StreamInput in) throws IOException
StreamInputin - stream inputIOExceptionpublic static RestoreInfo readOptionalRestoreInfo(StreamInput in) throws IOException
StreamInputin - stream inputIOExceptionCopyright © 2009–2017. All rights reserved.