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