Package org.apache.lucene.store

Support for testing store mechanisms.

See:
          Description

Class Summary
_TestHelper This class provides access to package-level features defined in the store package.
BaseDirectoryWrapper Calls check index on close.
MockDirectoryWrapper This is a Directory Wrapper that adds methods intended to be used only by unit tests.
MockDirectoryWrapper.Failure Objects that represent fail-able conditions.
MockIndexInputWrapper Used by MockDirectoryWrapper to create an input stream that keeps track of when it's been closed.
MockIndexOutputWrapper Used by MockRAMDirectory to create an output stream that will throw an IOException on fake disk full, track max disk space actually used, and maybe throw random IOExceptions.
MockLockFactoryWrapper Used by MockDirectoryWrapper to wrap another factory and track open locks.
 

Enum Summary
MockDirectoryWrapper.Throttling Enum for controlling hard disk throttling.
 

Package org.apache.lucene.store Description

Support for testing store mechanisms.

The primary class is MockDirectoryWrapper, which wraps any Directory implementation and provides additional checks.



Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.