public class RestoreInfo extends Object implements ToXContent, Streamable
Returned as part of RestoreSnapshotResponse
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| コンストラクタと説明 |
|---|
RestoreInfo(String name,
List<String> indices,
int totalShards,
int successfulShards) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 インタフェース内 ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionpublic static RestoreInfo readRestoreInfo(StreamInput in) throws IOException
StreamInputin - stream inputIOExceptionpublic static RestoreInfo readOptionalRestoreInfo(StreamInput in) throws IOException
StreamInputin - stream inputIOExceptionCopyright © 2009–2016. All rights reserved.