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, readDiffFrom
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
diff, readDiffFrom
public 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.Custom
public RestoreInProgress readFrom(StreamInput in) throws IOException
readFrom
in interface StreamableReader<ClusterState.Custom>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Writeable<ClusterState.Custom>
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void toXContent(RestoreInProgress.Entry entry, XContentBuilder builder, ToXContent.Params params) throws IOException
entry
- restore operation metadatabuilder
- XContent builderparams
- serialization parametersIOException
Copyright © 2009–2016. All rights reserved.