public class RestoreInfo extends java.lang.Object implements ToXContent, Streamable
Returned as part of RestoreSnapshotResponse
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
RestoreInfo(java.lang.String name,
java.util.List<java.lang.String> indices,
int totalShards,
int successfulShards) |
| Modifier and Type | Method and Description |
|---|---|
int |
failedShards()
Number of failed shards
|
java.util.List<java.lang.String> |
indices()
List of restored indices
|
java.lang.String |
name()
Snapshot name
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
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)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic RestoreInfo(java.lang.String name,
java.util.List<java.lang.String> indices,
int totalShards,
int successfulShards)
public java.lang.String name()
public java.util.List<java.lang.String> indices()
public int totalShards()
public int failedShards()
public int successfulShards()
public RestStatus status()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
readFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
writeTo in interface Streamablejava.io.IOExceptionpublic static RestoreInfo readRestoreInfo(StreamInput in) throws java.io.IOException
StreamInputin - stream inputjava.io.IOExceptionpublic static RestoreInfo readOptionalRestoreInfo(StreamInput in) throws java.io.IOException
StreamInputin - stream inputjava.io.IOException