Package org.elasticsearch.test.store
Class MockFSDirectoryService.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.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
-
-
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 voidcrash()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
-
-
-
-
Method Detail
-
crash
public void crash() throws java.io.IOException- Overrides:
crashin classorg.apache.lucene.store.MockDirectoryWrapper- Throws:
java.io.IOException
-
getPendingDeletions
public java.util.Set<java.lang.String> getPendingDeletions() throws java.io.IOException- Overrides:
getPendingDeletionsin classorg.apache.lucene.store.FilterDirectory- Throws:
java.io.IOException
-
-