public class MockFSDirectoryService extends FsDirectoryService
Modifier and Type | Class and Description |
---|---|
static class |
MockFSDirectoryService.ElasticsearchMockDirectoryWrapper |
Modifier and Type | Field and 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 |
INDEX_LOCK_FACTOR_SETTING, indexStore
deprecationLogger, indexSettings, logger, shardId
Constructor and Description |
---|
MockFSDirectoryService(IndexSettings idxSettings,
IndexStore indexStore,
ShardPath path) |
Modifier and Type | Method and 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) |
indexSettings, nodeName, shardId
public static final Setting<java.lang.Double> RANDOM_IO_EXCEPTION_RATE_ON_OPEN_SETTING
public static final Setting<java.lang.Double> RANDOM_IO_EXCEPTION_RATE_SETTING
public static final Setting<java.lang.Boolean> RANDOM_PREVENT_DOUBLE_WRITE_SETTING
public static final Setting<java.lang.Boolean> RANDOM_NO_DELETE_OPEN_FILE_SETTING
public static final Setting<java.lang.Boolean> CRASH_INDEX_SETTING
@Inject public MockFSDirectoryService(IndexSettings idxSettings, IndexStore indexStore, ShardPath path)
public org.apache.lucene.store.Directory newDirectory() throws java.io.IOException
newDirectory
in class FsDirectoryService
java.io.IOException
protected org.apache.lucene.store.Directory newFSDirectory(java.nio.file.Path location, org.apache.lucene.store.LockFactory lockFactory) throws java.io.IOException
newFSDirectory
in class FsDirectoryService
java.io.IOException