Module org.elasticsearch.server
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 TypeMethodDescriptionvoidbeforeIndexFoldersDeleted(Index index, IndexSettings indexSettings, Path[] indexPaths, IndexRemovalReason reason) Invoked before the folders of an index are deleted from disk.voidbeforeShardFoldersDeleted(ShardId shardId, IndexSettings indexSettings, Path[] shardPaths, IndexRemovalReason reason) Invoked before the folders of a shard are deleted from disk.
-
Method Details
-
beforeIndexFoldersDeleted
void beforeIndexFoldersDeleted(Index index, IndexSettings indexSettings, Path[] indexPaths, IndexRemovalReason reason) Invoked before the folders of an index are deleted from disk. The list of folders containsPaths that may or may not exist on disk. Shard locks are expected to be acquired at the time this method is invoked.- Parameters:
index- theIndexof 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 deletedreason- the reason for the deletion
-
beforeShardFoldersDeleted
void beforeShardFoldersDeleted(ShardId shardId, IndexSettings indexSettings, Path[] shardPaths, IndexRemovalReason reason) Invoked before the folders of a shard are deleted from disk. The list of folders containsPaths that may or may not exist on disk. Shard locks are expected to be acquired at the time this method is invoked.- Parameters:
shardId- theShardIdof 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 deletedreason- the reason for the deletion
-