Class IndexGraveyard.Builder
java.lang.Object
org.elasticsearch.cluster.metadata.IndexGraveyard.Builder
- Enclosing class:
- IndexGraveyard
A class to build an IndexGraveyard.
-
Method Summary
Modifier and TypeMethodDescriptionaddTombstone(Index index)
Add a deleted index to the list of tombstones in the cluster state.addTombstones(Collection<Index> indices)
Add a set of deleted indexes to the list of tombstones in the cluster state.build()
int
Get the number of tombstones that were purged.A copy of the current tombstones in the builder.
-
Method Details
-
tombstones
A copy of the current tombstones in the builder. -
addTombstone
Add a deleted index to the list of tombstones in the cluster state. -
addTombstones
Add a set of deleted indexes to the list of tombstones in the cluster state. -
getNumPurged
public int getNumPurged()Get the number of tombstones that were purged. This should *only* be called after build() has been called. -
build
-
build
-