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 Details

    • beforeIndexFoldersDeleted

      void beforeIndexFoldersDeleted(Index index, IndexSettings indexSettings, Path[] indexPaths)
      Invoked before the folders of an index are deleted from disk. The list of folders contains Paths that may or may not exist on disk. Shard locks are expected to be acquired at the time this method is invoked.
      Parameters:
      index - the Index of the index whose folders are going to be deleted
      indexSettings - settings for the index whose folders are going to be deleted
      indexPaths - the paths of the folders that are going to be deleted
    • beforeShardFoldersDeleted

      void beforeShardFoldersDeleted(ShardId shardId, IndexSettings indexSettings, Path[] shardPaths)
      Invoked before the folders of a shard are deleted from disk. The list of folders contains Paths that may or may not exist on disk. Shard locks are expected to be acquired at the time this method is invoked.
      Parameters:
      shardId - the ShardId of the shard whose folders are going to be deleted
      indexSettings - index settings of the shard whose folders are going to be deleted
      shardPaths - the paths of the folders that are going to be deleted