Class MockFSDirectoryFactory.ElasticsearchMockDirectoryWrapper

java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.FilterDirectory
org.apache.lucene.store.BaseDirectoryWrapper
org.apache.lucene.store.MockDirectoryWrapper
org.elasticsearch.test.store.MockFSDirectoryFactory.ElasticsearchMockDirectoryWrapper
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
MockFSDirectoryFactory

public static final class MockFSDirectoryFactory.ElasticsearchMockDirectoryWrapper extends org.apache.lucene.store.MockDirectoryWrapper
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.store.MockDirectoryWrapper

    org.apache.lucene.store.MockDirectoryWrapper.Failure, org.apache.lucene.store.MockDirectoryWrapper.FakeIOException, org.apache.lucene.store.MockDirectoryWrapper.Throttling
  • Field Summary

    Fields inherited from class org.apache.lucene.store.BaseDirectoryWrapper

    isOpen

    Fields inherited from class org.apache.lucene.store.FilterDirectory

    in
  • Constructor Summary

    Constructors
    Constructor
    Description
    ElasticsearchMockDirectoryWrapper(Random random, org.apache.lucene.store.Directory delegate, boolean crash)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.apache.lucene.store.MockDirectoryWrapper

    clearCrash, close, copyFrom, corruptFiles, corruptUnknownFiles, createOutput, createTempOutput, deleteFile, ensureOpen, failOn, fileLength, getAssertNoDeleteOpenFile, getFileHandleCount, getInputCloneCount, getMaxSizeInBytes, getMaxUsedSizeInBytes, getOpenDeletedFiles, getRandomIOExceptionRate, getRandomIOExceptionRateOnOpen, listAll, obtainLock, openChecksumInput, openInput, removeIndexInput, removeIndexOutput, rename, resetMaxUsedSizeInBytes, setAllowRandomFileNotFoundException, setAllowReadingFilesStillOpenForWrite, setAssertNoDeleteOpenFile, setAssertNoUnrefencedFilesOnClose, setFailOnCreateOutput, setFailOnOpenInput, setMaxSizeInBytes, setRandomIOExceptionRate, setRandomIOExceptionRateOnOpen, setThrottling, setTrackDiskUsage, setUseSlowOpenClosers, setVerboseClone, sizeInBytes, sync, syncMetaData, toString

    Methods inherited from class org.apache.lucene.store.BaseDirectoryWrapper

    getCheckIndexOnClose, getCrossCheckTermVectorsOnClose, isOpen, setCheckIndexOnClose, setCrossCheckTermVectorsOnClose

    Methods inherited from class org.apache.lucene.store.FilterDirectory

    getDelegate, getPendingDeletions, unwrap

    Methods inherited from class org.apache.lucene.store.Directory

    getTempFileName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ElasticsearchMockDirectoryWrapper

      public ElasticsearchMockDirectoryWrapper(Random random, org.apache.lucene.store.Directory delegate, boolean crash)
  • Method Details

    • crash

      public void crash() throws IOException
      Overrides:
      crash in class org.apache.lucene.store.MockDirectoryWrapper
      Throws:
      IOException