Package org.elasticsearch.test.store
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:
java.io.Closeable
,java.lang.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(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 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(java.util.Random random, org.apache.lucene.store.Directory delegate, boolean crash)
-
-
Method Details
-
crash
public void crash() throws java.io.IOException- Overrides:
crash
in classorg.apache.lucene.store.MockDirectoryWrapper
- Throws:
java.io.IOException
-
getPendingDeletions
public java.util.Set<java.lang.String> getPendingDeletions() throws java.io.IOException- Overrides:
getPendingDeletions
in classorg.apache.lucene.store.FilterDirectory
- Throws:
java.io.IOException
-