public class RestoreInProgress extends AbstractDiffable<ClusterState.Custom> implements ClusterState.Custom
| Modifier and Type | Class and Description |
|---|---|
static class |
RestoreInProgress.Entry
Restore metadata
|
static class |
RestoreInProgress.ShardRestoreStatus
Represents status of a restored shard
|
static class |
RestoreInProgress.State
Shard restore process state
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static RestoreInProgress |
PROTO |
static String |
TYPE |
EMPTY_PARAMS| Constructor and Description |
|---|
RestoreInProgress(List<RestoreInProgress.Entry> entries)
Constructs new restore metadata
|
RestoreInProgress(RestoreInProgress.Entry... entries)
Constructs new restore metadata
|
| Modifier and Type | Method and Description |
|---|---|
List<RestoreInProgress.Entry> |
entries()
Returns list of currently running restore processes
|
boolean |
equals(Object o) |
int |
hashCode() |
RestoreInProgress |
readFrom(StreamInput in)
Reads a copy of an object with the same type form the stream input
The caller object remains unchanged.
|
RestoreInProgress.Entry |
snapshot(SnapshotId snapshotId)
Returns currently running restore process with corresponding snapshot id or null if this snapshot is not being
restored
|
void |
toXContent(RestoreInProgress.Entry entry,
XContentBuilder builder,
ToXContent.Params params)
Serializes single restore operation
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
String |
type() |
void |
writeTo(StreamOutput out)
Writes the current object into the output stream out
|
diff, get, readDiffFrom, readDiffFromclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdiff, readDiffFrompublic static final String TYPE
public static final RestoreInProgress PROTO
public RestoreInProgress(List<RestoreInProgress.Entry> entries)
entries - list of currently running restore processespublic RestoreInProgress(RestoreInProgress.Entry... entries)
entries - list of currently running restore processespublic List<RestoreInProgress.Entry> entries()
public RestoreInProgress.Entry snapshot(SnapshotId snapshotId)
snapshotId - snapshot idpublic String type()
type in interface ClusterState.Custompublic RestoreInProgress readFrom(StreamInput in) throws IOException
readFrom in interface StreamableReader<ClusterState.Custom>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface Writeable<ClusterState.Custom>IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void toXContent(RestoreInProgress.Entry entry, XContentBuilder builder, ToXContent.Params params) throws IOException
entry - restore operation metadatabuilder - XContent builderparams - serialization parametersIOExceptionCopyright © 2009–2017. All rights reserved.