public abstract class EphemeralDirectoryFactory extends CachingDirectoryFactory
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListener
DirectoryFactory.DirContext
byDirectoryCache, byPathCache, closeListeners, removeEntries
IOCONTEXT_NO_CACHE
Constructor and Description |
---|
EphemeralDirectoryFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(String path)
Returns true if a Directory exists for a given path.
|
boolean |
isAbsolute(String path) |
boolean |
isPersistent() |
void |
remove(Directory dir)
Removes the Directory's persistent storage.
|
void |
remove(String path)
This remove is special in that it may be called even after
the factory has been closed.
|
addCloseListener, close, create, doneWithDirectory, get, getLivePaths, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlash
empty, getDataHome, isSharedStorage, move, searchersReserveCommitPoints, sizeOf, sizeOfDirectory
public boolean exists(String path) throws IOException
DirectoryFactory
exists
in class CachingDirectoryFactory
IOException
- If there is a low-level I/O error.public boolean isPersistent()
isPersistent
in class DirectoryFactory
public boolean isAbsolute(String path)
isAbsolute
in class DirectoryFactory
path
- the path to checkpublic void remove(Directory dir) throws IOException
DirectoryFactory
remove
in class CachingDirectoryFactory
IOException
- If there is a low-level I/O error.public void remove(String path) throws IOException
DirectoryFactory
remove
in class CachingDirectoryFactory
path
- to removeIOException
- If there is a low-level I/O error.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.