public class RestoreInfo extends java.lang.Object implements ToXContent, Streamable
Returned as part of RestoreSnapshotResponse
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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, wait
isFragment
public 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 ToXContent
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
writeTo
in interface Streamable
java.io.IOException
public static RestoreInfo readRestoreInfo(StreamInput in) throws java.io.IOException
StreamInput
in
- stream inputjava.io.IOException
public static RestoreInfo readOptionalRestoreInfo(StreamInput in) throws java.io.IOException
StreamInput
in
- stream inputjava.io.IOException