Package org.elasticsearch.plugins
Interface IndexStorePlugin
public interface IndexStorePlugin
A plugin that provides alternative directory implementations.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIndexStorePlugin.DirectoryFactoryAn interface that describes how to create a new directory instance per shard.static interfaceIndexStorePlugin.RecoveryStateFactoryAn interface that allows to create a newRecoveryStateper shard. -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,IndexStorePlugin.DirectoryFactory>getDirectoryFactories()TheIndexStorePlugin.DirectoryFactorymappings for this plugin.default java.util.Map<java.lang.String,IndexStorePlugin.RecoveryStateFactory>getRecoveryStateFactories()TheIndexStorePlugin.RecoveryStateFactorymappings for this plugin.
-
Method Details
-
getDirectoryFactories
java.util.Map<java.lang.String,IndexStorePlugin.DirectoryFactory> getDirectoryFactories()TheIndexStorePlugin.DirectoryFactorymappings for this plugin. When an index is created the store type settingIndexModule.INDEX_STORE_TYPE_SETTINGon the index will be examined and either use the default or a built-in type, or looked up among all the directory factories fromIndexStorePluginplugins.- Returns:
- a map from store type to an directory factory
-
getRecoveryStateFactories
default java.util.Map<java.lang.String,IndexStorePlugin.RecoveryStateFactory> getRecoveryStateFactories()TheIndexStorePlugin.RecoveryStateFactorymappings for this plugin. When an index is created the recovery type settingIndexModule.INDEX_RECOVERY_TYPE_SETTINGon the index will be examined and either use the default or looked up among all the recovery state factories fromIndexStorePluginplugins.- Returns:
- a map from recovery type to an recovery state factory
-