org.apache.lucene.store
Class MockLockFactoryWrapper
java.lang.Object
org.apache.lucene.store.LockFactory
org.apache.lucene.store.MockLockFactoryWrapper
public class MockLockFactoryWrapper
- extends org.apache.lucene.store.LockFactory
Used by MockDirectoryWrapper to wrap another factory
and track open locks.
Fields inherited from class org.apache.lucene.store.LockFactory |
lockPrefix |
MockLockFactoryWrapper
public MockLockFactoryWrapper(MockDirectoryWrapper dir,
org.apache.lucene.store.LockFactory delegate)
setLockPrefix
public void setLockPrefix(String lockPrefix)
- Overrides:
setLockPrefix
in class org.apache.lucene.store.LockFactory
getLockPrefix
public String getLockPrefix()
- Overrides:
getLockPrefix
in class org.apache.lucene.store.LockFactory
makeLock
public org.apache.lucene.store.Lock makeLock(String lockName)
- Specified by:
makeLock
in class org.apache.lucene.store.LockFactory
clearLock
public void clearLock(String lockName)
throws IOException
- Specified by:
clearLock
in class org.apache.lucene.store.LockFactory
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object