Package org.elasticsearch.plugins
Interface IndexStorePlugin.IndexFoldersDeletionListener
- All Known Implementing Classes:
CompositeIndexFoldersDeletionListener
- Enclosing interface:
- IndexStorePlugin
public static interface IndexStorePlugin.IndexFoldersDeletionListener
IndexStorePlugin.IndexFoldersDeletionListener
are invoked before the folders of a shard or an index are deleted from disk.-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeIndexFoldersDeleted(Index index, IndexSettings indexSettings, Path[] indexPaths)
Invoked before the folders of an index are deleted from disk.void
beforeShardFoldersDeleted(ShardId shardId, IndexSettings indexSettings, Path[] shardPaths)
Invoked before the folders of a shard are deleted from disk.
-
Method Details
-
beforeIndexFoldersDeleted
Invoked before the folders of an index are deleted from disk. The list of folders containsPath
s that may or may not exist on disk. Shard locks are expected to be acquired at the time this method is invoked.- Parameters:
index
- theIndex
of the index whose folders are going to be deletedindexSettings
- settings for the index whose folders are going to be deletedindexPaths
- the paths of the folders that are going to be deleted
-
beforeShardFoldersDeleted
Invoked before the folders of a shard are deleted from disk. The list of folders containsPath
s that may or may not exist on disk. Shard locks are expected to be acquired at the time this method is invoked.- Parameters:
shardId
- theShardId
of the shard whose folders are going to be deletedindexSettings
- index settings of the shard whose folders are going to be deletedshardPaths
- the paths of the folders that are going to be deleted
-