|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectDirectory
FSDirectory
NativeFSDirectory
public class NativeFSDirectory
| Field Summary | |
|---|---|
private static HashMap<File,LockFactory> |
lockFactories
|
| Fields inherited from class FSDirectory |
|---|
LOCK_DIR |
| Fields inherited from class Directory |
|---|
lockFactory |
| Constructor Summary | |
|---|---|
NativeFSDirectory()
|
|
| Method Summary | |
|---|---|
static FSDirectory |
getDirectory(File file)
Returns the directory instance for the named location. |
static FSDirectory |
getDirectory(String path)
Returns the directory instance for the named location. |
private static LockFactory |
getLockFactory(File f)
Get the lock factory for the given directory. |
| Methods inherited from class FSDirectory |
|---|
close, createOutput, deleteFile, fileExists, fileLength, fileModified, fileModified, getDirectory, getDirectory, getDirectory, getDirectory, getDisableLocks, getFile, getLockID, list, openInput, renameFile, setDisableLocks, toString, touchFile |
| Methods inherited from class Directory |
|---|
clearLock, copy, getLockFactory, makeLock, setLockFactory |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static HashMap<File,LockFactory> lockFactories
| Constructor Detail |
|---|
public NativeFSDirectory()
| Method Detail |
|---|
public static FSDirectory getDirectory(String path)
throws IOException
path - the path to the directory.
IOException
public static FSDirectory getDirectory(File file)
throws IOException
file - the path to the directory.
IOException
private static LockFactory getLockFactory(File f)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||