Package org.elasticsearch.test.store
Class MockFSDirectoryService
- java.lang.Object
-
- org.elasticsearch.index.shard.AbstractIndexShardComponent
-
- org.elasticsearch.index.store.DirectoryService
-
- org.elasticsearch.index.store.FsDirectoryService
-
- org.elasticsearch.test.store.MockFSDirectoryService
-
- All Implemented Interfaces:
IndexShardComponent
public class MockFSDirectoryService extends FsDirectoryService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MockFSDirectoryService.ElasticsearchMockDirectoryWrapper
-
Field Summary
Fields Modifier and Type Field Description static Setting<java.lang.Boolean>
CRASH_INDEX_SETTING
static Setting<java.lang.Double>
RANDOM_IO_EXCEPTION_RATE_ON_OPEN_SETTING
static Setting<java.lang.Double>
RANDOM_IO_EXCEPTION_RATE_SETTING
static Setting<java.lang.Boolean>
RANDOM_NO_DELETE_OPEN_FILE_SETTING
static Setting<java.lang.Boolean>
RANDOM_PREVENT_DOUBLE_WRITE_SETTING
-
Fields inherited from class org.elasticsearch.index.store.FsDirectoryService
INDEX_LOCK_FACTOR_SETTING
-
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
deprecationLogger, indexSettings, logger, shardId
-
-
Constructor Summary
Constructors Constructor Description MockFSDirectoryService(IndexSettings idxSettings, ShardPath path)
-
Method Summary
Modifier and Type Method Description static void
checkIndex(org.apache.logging.log4j.Logger logger, Store store, ShardId shardId)
org.apache.lucene.store.Directory
newDirectory()
protected org.apache.lucene.store.Directory
newFSDirectory(java.nio.file.Path location, org.apache.lucene.store.LockFactory lockFactory)
-
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, nodeName, shardId
-
-
-
-
Field Detail
-
RANDOM_IO_EXCEPTION_RATE_ON_OPEN_SETTING
public static final Setting<java.lang.Double> RANDOM_IO_EXCEPTION_RATE_ON_OPEN_SETTING
-
RANDOM_IO_EXCEPTION_RATE_SETTING
public static final Setting<java.lang.Double> RANDOM_IO_EXCEPTION_RATE_SETTING
-
RANDOM_PREVENT_DOUBLE_WRITE_SETTING
public static final Setting<java.lang.Boolean> RANDOM_PREVENT_DOUBLE_WRITE_SETTING
-
RANDOM_NO_DELETE_OPEN_FILE_SETTING
public static final Setting<java.lang.Boolean> RANDOM_NO_DELETE_OPEN_FILE_SETTING
-
CRASH_INDEX_SETTING
public static final Setting<java.lang.Boolean> CRASH_INDEX_SETTING
-
-
Constructor Detail
-
MockFSDirectoryService
@Inject public MockFSDirectoryService(IndexSettings idxSettings, ShardPath path)
-
-
Method Detail
-
newDirectory
public org.apache.lucene.store.Directory newDirectory() throws java.io.IOException
- Overrides:
newDirectory
in classFsDirectoryService
- Throws:
java.io.IOException
-
newFSDirectory
protected org.apache.lucene.store.Directory newFSDirectory(java.nio.file.Path location, org.apache.lucene.store.LockFactory lockFactory) throws java.io.IOException
- Overrides:
newFSDirectory
in classFsDirectoryService
- Throws:
java.io.IOException
-
-