ClusterState.Custom
, ClusterState.FeatureAware
, Diffable<ClusterState.Custom>
, NamedDiffable<ClusterState.Custom>
, NamedWriteable
, VersionedNamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
public class SnapshotsInProgress extends AbstractNamedDiffable<ClusterState.Custom> implements ClusterState.Custom
Modifier and Type | Class | Description |
---|---|---|
static class |
SnapshotsInProgress.Entry |
|
static class |
SnapshotsInProgress.ShardSnapshotStatus |
|
static class |
SnapshotsInProgress.State |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
TYPE |
|
static long |
UNDEFINED_REPOSITORY_STATE_ID |
EMPTY_PARAMS
Constructor | Description |
---|---|
SnapshotsInProgress(java.util.List<SnapshotsInProgress.Entry> entries) |
|
SnapshotsInProgress(SnapshotsInProgress.Entry... entries) |
|
SnapshotsInProgress(StreamInput in) |
Modifier and Type | Method | 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) |
|
Version |
getMinimalSupportedVersion() |
The minimal version of the recipient this object can be sent to
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
int |
hashCode() |
|
static NamedDiff<ClusterState.Custom> |
readDiffFrom(StreamInput in) |
|
SnapshotsInProgress.Entry |
snapshot(Snapshot snapshot) |
|
java.lang.String |
toString() |
|
void |
toXContent(SnapshotsInProgress.Entry entry,
XContentBuilder builder,
ToXContent.Params params) |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
diff, get, readDiffFrom
isPrivate
getRequiredFeature
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public static final java.lang.String TYPE
public static final long UNDEFINED_REPOSITORY_STATE_ID
public SnapshotsInProgress(java.util.List<SnapshotsInProgress.Entry> entries)
public SnapshotsInProgress(SnapshotsInProgress.Entry... entries)
public SnapshotsInProgress(StreamInput in) throws java.io.IOException
java.io.IOException
public 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 toString()
toString
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 getWriteableName()
VersionedNamedWriteable
getWriteableName
in interface NamedWriteable
getWriteableName
in interface VersionedNamedWriteable
public Version getMinimalSupportedVersion()
VersionedNamedWriteable
getMinimalSupportedVersion
in interface VersionedNamedWriteable
public static NamedDiff<ClusterState.Custom> readDiffFrom(StreamInput in) throws java.io.IOException
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