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
|
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static RestoreInProgress |
PROTO |
static java.lang.String |
TYPE |
EMPTY_PARAMS
Constructor and Description |
---|
RestoreInProgress(java.util.List<RestoreInProgress.Entry> entries)
Constructs new restore metadata
|
RestoreInProgress(RestoreInProgress.Entry... entries)
Constructs new restore metadata
|
Modifier and Type | Method and Description |
---|---|
java.util.List<RestoreInProgress.Entry> |
entries()
Returns list of currently running restore processes
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
RestoreInProgress |
readFrom(StreamInput in)
Reads an object of this type from the provided StreamInput.
|
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) |
java.lang.String |
type() |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
diff, get, readDiffFrom, readDiffFrom
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
diff, readDiffFrom
public static final java.lang.String TYPE
public static final RestoreInProgress PROTO
public RestoreInProgress(java.util.List<RestoreInProgress.Entry> entries)
entries
- list of currently running restore processespublic RestoreInProgress(RestoreInProgress.Entry... entries)
entries
- list of currently running restore processespublic java.util.List<RestoreInProgress.Entry> entries()
public RestoreInProgress.Entry snapshot(SnapshotId snapshotId)
snapshotId
- snapshot idpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String type()
type
in interface ClusterState.Custom
public RestoreInProgress readFrom(StreamInput in) throws java.io.IOException
readFrom
in interface Diffable<ClusterState.Custom>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void toXContent(RestoreInProgress.Entry entry, XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
entry
- restore operation metadatabuilder
- XContent builderparams
- serialization parametersjava.io.IOException