public class SnapshotsInProgress extends AbstractDiffable<ClusterState.Custom> implements ClusterState.Custom
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotsInProgress.Entry |
static class |
SnapshotsInProgress.ShardSnapshotStatus |
static class |
SnapshotsInProgress.State |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static SnapshotsInProgress |
PROTO |
static String |
TYPE |
EMPTY_PARAMS
Constructor and Description |
---|
SnapshotsInProgress(List<SnapshotsInProgress.Entry> entries) |
SnapshotsInProgress(SnapshotsInProgress.Entry... entries) |
Modifier and Type | Method and Description |
---|---|
static boolean |
completed(Collection<SnapshotsInProgress.ShardSnapshotStatus> shards)
Checks if all shards in the list have completed
|
List<SnapshotsInProgress.Entry> |
entries() |
boolean |
equals(Object o) |
int |
hashCode() |
SnapshotsInProgress |
readFrom(StreamInput in)
Reads a copy of an object with the same type form the stream input
The caller object remains unchanged.
|
SnapshotsInProgress.Entry |
snapshot(SnapshotId snapshotId) |
void |
toXContent(SnapshotsInProgress.Entry entry,
XContentBuilder builder,
ToXContent.Params params) |
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 SnapshotsInProgress PROTO
public SnapshotsInProgress(List<SnapshotsInProgress.Entry> entries)
public SnapshotsInProgress(SnapshotsInProgress.Entry... entries)
public static boolean completed(Collection<SnapshotsInProgress.ShardSnapshotStatus> shards)
shards
- list of shard statusespublic List<SnapshotsInProgress.Entry> entries()
public SnapshotsInProgress.Entry snapshot(SnapshotId snapshotId)
public String type()
type
in interface ClusterState.Custom
public SnapshotsInProgress readFrom(StreamInput in) throws IOException
StreamableReader
readFrom
in interface StreamableReader<ClusterState.Custom>
IOException
public void writeTo(StreamOutput out) throws IOException
Writeable
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(SnapshotsInProgress.Entry entry, XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.