Class MockFSDirectoryFactory
java.lang.Object
org.opensearch.test.store.MockFSDirectoryFactory
- All Implemented Interfaces:
org.opensearch.plugins.IndexStorePlugin.DirectoryFactory
public class MockFSDirectoryFactory
extends Object
implements org.opensearch.plugins.IndexStorePlugin.DirectoryFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckIndex(org.apache.logging.log4j.Logger logger, org.opensearch.index.store.Store store, org.opensearch.core.index.shard.ShardId shardId) org.apache.lucene.store.DirectorynewDirectory(org.opensearch.index.IndexSettings idxSettings, org.opensearch.index.shard.ShardPath path)
-
Field Details
-
FILE_SYSTEM_BASED_STORE_TYPES
-
RANDOM_IO_EXCEPTION_RATE_ON_OPEN_SETTING
public static final org.opensearch.common.settings.Setting<Double> RANDOM_IO_EXCEPTION_RATE_ON_OPEN_SETTING -
RANDOM_IO_EXCEPTION_RATE_SETTING
-
CRASH_INDEX_SETTING
-
-
Constructor Details
-
MockFSDirectoryFactory
public MockFSDirectoryFactory()
-
-
Method Details
-
newDirectory
public org.apache.lucene.store.Directory newDirectory(org.opensearch.index.IndexSettings idxSettings, org.opensearch.index.shard.ShardPath path) throws IOException - Specified by:
newDirectoryin interfaceorg.opensearch.plugins.IndexStorePlugin.DirectoryFactory- Throws:
IOException
-
checkIndex
public static void checkIndex(org.apache.logging.log4j.Logger logger, org.opensearch.index.store.Store store, org.opensearch.core.index.shard.ShardId shardId)
-