public class SnapshotDeletionsInProgress extends AbstractNamedDiffable<ClusterState.Custom> implements ClusterState.Custom
| Modifier and Type | Class and Description |
|---|---|
static class |
SnapshotDeletionsInProgress.Entry
A class representing a snapshot deletion request entry in the cluster state.
|
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
static Version |
VERSION_INTRODUCED |
EMPTY_PARAMS| Constructor and Description |
|---|
SnapshotDeletionsInProgress(StreamInput in) |
| Modifier and Type | Method and 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 custom 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) |
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, readDiffFromclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final java.lang.String TYPE
public static final Version VERSION_INTRODUCED
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()
NamedWriteablegetWriteableName in interface NamedWriteablepublic 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()
NamedDiffablegetMinimalSupportedVersion in interface NamedDiffable<ClusterState.Custom>public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException