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, readDiffFromclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdiff, readDiffFrompublic 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.Custompublic SnapshotsInProgress readFrom(StreamInput in) throws IOException
StreamableReaderreadFrom in interface StreamableReader<ClusterState.Custom>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
WriteablewriteTo in interface Writeable<ClusterState.Custom>IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void toXContent(SnapshotsInProgress.Entry entry, XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.