public abstract class BaseDirectory extends Directory
Directory that uses a LockFactory for locking.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isOpen |
protected LockFactory |
lockFactory
Holds the LockFactory instance (implements locking for
this Directory instance).
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseDirectory(LockFactory lockFactory)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureOpen() |
Lock |
makeLock(String name)
Construct a
Lock. |
String |
toString() |
close, copyFrom, createOutput, deleteFile, fileLength, listAll, openChecksumInput, openInput, renameFile, syncprotected volatile boolean isOpen
protected final LockFactory lockFactory
protected BaseDirectory(LockFactory lockFactory)
public final Lock makeLock(String name)
DirectoryLock.protected final void ensureOpen()
throws AlreadyClosedException
ensureOpen in class DirectoryAlreadyClosedException - if this Directory is closedCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.