ClusterState.Custom, ClusterState.FeatureAware, Diffable<ClusterState.Custom>, NamedDiffable<ClusterState.Custom>, NamedWriteable, VersionedNamedWriteable, Writeable, ToXContent, ToXContentFragmentpublic class SnapshotDeletionsInProgress extends AbstractNamedDiffable<ClusterState.Custom> implements ClusterState.Custom
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SnapshotDeletionsInProgress.Entry |
A class representing a snapshot deletion request entry in the cluster state.
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
TYPE |
|
static Version |
VERSION_INTRODUCED |
EMPTY_PARAMS| Constructor | Description |
|---|---|
SnapshotDeletionsInProgress() |
|
SnapshotDeletionsInProgress(StreamInput in) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.util.List<SnapshotDeletionsInProgress.Entry> |
getEntries() |
Returns an unmodifiable list of snapshot deletion entries.
|
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
|
boolean |
hasDeletionsInProgress() |
Returns
true if there are snapshot deletions in progress in the cluster,
returns false otherwise. |
int |
hashCode() |
|
static SnapshotDeletionsInProgress |
newInstance(SnapshotDeletionsInProgress.Entry entry) |
Returns a new instance of
SnapshotDeletionsInProgress with the given
SnapshotDeletionsInProgress.Entry added. |
static NamedDiff<ClusterState.Custom> |
readDiffFrom(StreamInput in) |
|
java.lang.String |
toString() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
SnapshotDeletionsInProgress |
withAddedEntry(SnapshotDeletionsInProgress.Entry entry) |
Returns a new instance of
SnapshotDeletionsInProgress which adds
the given SnapshotDeletionsInProgress.Entry to the invoking instance. |
SnapshotDeletionsInProgress |
withRemovedEntry(SnapshotDeletionsInProgress.Entry entry) |
Returns a new instance of
SnapshotDeletionsInProgress which removes
the given entry from the invoking instance. |
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
diff, get, readDiffFromisPrivategetRequiredFeatureclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic static final java.lang.String TYPE
public static final Version VERSION_INTRODUCED
public SnapshotDeletionsInProgress()
public SnapshotDeletionsInProgress(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static SnapshotDeletionsInProgress newInstance(SnapshotDeletionsInProgress.Entry entry)
SnapshotDeletionsInProgress with the given
SnapshotDeletionsInProgress.Entry added.public SnapshotDeletionsInProgress withAddedEntry(SnapshotDeletionsInProgress.Entry entry)
SnapshotDeletionsInProgress which adds
the given SnapshotDeletionsInProgress.Entry to the invoking instance.public SnapshotDeletionsInProgress withRemovedEntry(SnapshotDeletionsInProgress.Entry entry)
SnapshotDeletionsInProgress which removes
the given entry from the invoking instance.public java.util.List<SnapshotDeletionsInProgress.Entry> getEntries()
public boolean hasDeletionsInProgress()
true if there are snapshot deletions in progress in the cluster,
returns false otherwise.public java.lang.String getWriteableName()
VersionedNamedWriteablegetWriteableName in interface NamedWriteablegetWriteableName in interface VersionedNamedWriteablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic static NamedDiff<ClusterState.Custom> readDiffFrom(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic Version getMinimalSupportedVersion()
VersionedNamedWriteablegetMinimalSupportedVersion in interface VersionedNamedWriteablepublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object