public final class IndexGraveyard extends java.lang.Object implements MetaData.Custom
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexGraveyard.Builder
A class to build an IndexGraveyard.
|
static class |
IndexGraveyard.IndexGraveyardDiff
A class representing a diff of two IndexGraveyard objects.
|
static class |
IndexGraveyard.Tombstone
An individual tombstone entry for representing a deleted index.
|
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static Setting<java.lang.Integer> |
SETTING_MAX_TOMBSTONES
Setting for the maximum tombstones allowed in the cluster state;
prevents the cluster state size from exploding too large, but it opens the
very unlikely risk that if there are greater than MAX_TOMBSTONES index
deletions while a node was offline, when it comes back online, it will have
missed index deletions that it may need to process.
|
static java.lang.String |
TYPE |
EMPTY_PARAMS| Constructor and Description |
|---|
IndexGraveyard(StreamInput in) |
| Modifier and Type | Method and Description |
|---|---|
static IndexGraveyard.Builder |
builder() |
static IndexGraveyard.Builder |
builder(IndexGraveyard graveyard) |
boolean |
containsIndex(Index index)
Returns true if the graveyard contains a tombstone for the given index.
|
java.util.EnumSet<MetaData.XContentContext> |
context() |
Diff<MetaData.Custom> |
diff(MetaData.Custom previous)
Returns serializable object representing differences between this and previousState
|
boolean |
equals(java.lang.Object obj) |
static IndexGraveyard |
fromXContent(XContentParser parser) |
java.util.List<IndexGraveyard.Tombstone> |
getTombstones()
Get the current unmodifiable index tombstone list.
|
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
int |
hashCode() |
static NamedDiff<MetaData.Custom> |
readDiffFrom(StreamInput in) |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMinimalSupportedVersionisFragmentpublic static final Setting<java.lang.Integer> SETTING_MAX_TOMBSTONES
public static final java.lang.String TYPE
public IndexGraveyard(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteablepublic java.util.EnumSet<MetaData.XContentContext> context()
context in interface MetaData.Custompublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.List<IndexGraveyard.Tombstone> getTombstones()
public boolean containsIndex(Index index)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static IndexGraveyard fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic Diff<MetaData.Custom> diff(MetaData.Custom previous)
Diffablediff in interface Diffable<MetaData.Custom>public static NamedDiff<MetaData.Custom> readDiffFrom(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static IndexGraveyard.Builder builder()
public static IndexGraveyard.Builder builder(IndexGraveyard graveyard)