Package org.opensearch.test.store
Class MockFSDirectoryFactory
java.lang.Object
org.opensearch.test.store.MockFSDirectoryFactory
- All Implemented Interfaces:
org.opensearch.plugins.IndexStorePlugin.DirectoryFactory
public class MockFSDirectoryFactory
extends java.lang.Object
implements org.opensearch.plugins.IndexStorePlugin.DirectoryFactory
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMockFSDirectoryFactory.OpenSearchMockDirectoryWrapper -
Field Summary
Fields Modifier and Type Field Description static org.opensearch.common.settings.Setting<java.lang.Boolean>CRASH_INDEX_SETTINGstatic org.opensearch.common.settings.Setting<java.lang.Double>RANDOM_IO_EXCEPTION_RATE_ON_OPEN_SETTINGstatic org.opensearch.common.settings.Setting<java.lang.Double>RANDOM_IO_EXCEPTION_RATE_SETTING -
Constructor Summary
Constructors Constructor Description MockFSDirectoryFactory() -
Method Summary
Modifier and Type Method Description static voidcheckIndex(org.apache.logging.log4j.Logger logger, org.opensearch.index.store.Store store, org.opensearch.index.shard.ShardId shardId)org.apache.lucene.store.DirectorynewDirectory(org.opensearch.index.IndexSettings idxSettings, org.opensearch.index.shard.ShardPath path)
-
Field Details
-
RANDOM_IO_EXCEPTION_RATE_ON_OPEN_SETTING
public static final org.opensearch.common.settings.Setting<java.lang.Double> RANDOM_IO_EXCEPTION_RATE_ON_OPEN_SETTING -
RANDOM_IO_EXCEPTION_RATE_SETTING
public static final org.opensearch.common.settings.Setting<java.lang.Double> RANDOM_IO_EXCEPTION_RATE_SETTING -
CRASH_INDEX_SETTING
public static final org.opensearch.common.settings.Setting<java.lang.Boolean> 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 java.io.IOException- Specified by:
newDirectoryin interfaceorg.opensearch.plugins.IndexStorePlugin.DirectoryFactory- Throws:
java.io.IOException
-
checkIndex
public static void checkIndex(org.apache.logging.log4j.Logger logger, org.opensearch.index.store.Store store, org.opensearch.index.shard.ShardId shardId)
-