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 |
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static SnapshotsInProgress |
PROTO |
static java.lang.String |
TYPE |
EMPTY_PARAMS
Constructor and Description |
---|
SnapshotsInProgress(java.util.List<SnapshotsInProgress.Entry> entries) |
SnapshotsInProgress(SnapshotsInProgress.Entry... entries) |
Modifier and Type | Method and Description |
---|---|
static boolean |
completed(com.carrotsearch.hppc.ObjectContainer<SnapshotsInProgress.ShardSnapshotStatus> shards)
Checks if all shards in the list have completed
|
java.util.List<SnapshotsInProgress.Entry> |
entries() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
SnapshotsInProgress |
readFrom(StreamInput in)
Reads an object of this type from the provided StreamInput.
|
SnapshotsInProgress.Entry |
snapshot(Snapshot snapshot) |
void |
toXContent(SnapshotsInProgress.Entry entry,
XContentBuilder builder,
ToXContent.Params params) |
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 SnapshotsInProgress PROTO
public SnapshotsInProgress(java.util.List<SnapshotsInProgress.Entry> entries)
public SnapshotsInProgress(SnapshotsInProgress.Entry... entries)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static boolean completed(com.carrotsearch.hppc.ObjectContainer<SnapshotsInProgress.ShardSnapshotStatus> shards)
shards
- list of shard statusespublic java.util.List<SnapshotsInProgress.Entry> entries()
public SnapshotsInProgress.Entry snapshot(Snapshot snapshot)
public java.lang.String type()
type
in interface ClusterState.Custom
public SnapshotsInProgress readFrom(StreamInput in) throws java.io.IOException
Diffable
readFrom
in interface Diffable<ClusterState.Custom>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void toXContent(SnapshotsInProgress.Entry entry, XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException