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
  • Field Details

    • FILE_SYSTEM_BASED_STORE_TYPES

      public static final List<org.opensearch.index.IndexModule.Type> 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

      public static final org.opensearch.common.settings.Setting<Double> RANDOM_IO_EXCEPTION_RATE_SETTING
    • CRASH_INDEX_SETTING

      public static final org.opensearch.common.settings.Setting<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 IOException
      Specified by:
      newDirectory in interface org.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)