Class MockFSDirectoryService.ElasticsearchMockDirectoryWrapper

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    MockFSDirectoryService

    public static final class MockFSDirectoryService.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​(java.util.Random random, org.apache.lucene.store.Directory delegate, boolean crash)  
    • Method Summary

      Modifier and Type Method Description
      void crash()  
      java.util.Set<java.lang.String> getPendingDeletions()  
      • 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, getRecomputedActualSizeInBytes, getRecomputedSizeInBytes, 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, unwrap
      • Methods inherited from class java.lang.Object

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

      • ElasticsearchMockDirectoryWrapper

        public ElasticsearchMockDirectoryWrapper​(java.util.Random random,
                                                 org.apache.lucene.store.Directory delegate,
                                                 boolean crash)
    • Method Detail

      • crash

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

        public java.util.Set<java.lang.String> getPendingDeletions()
                                                            throws java.io.IOException
        Overrides:
        getPendingDeletions in class org.apache.lucene.store.FilterDirectory
        Throws:
        java.io.IOException