public abstract class EphemeralDirectoryFactory extends CachingDirectoryFactory
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListener
DirectoryFactory.DirContext
byDirectoryCache, byPathCache, closeListeners
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 |
isPersistent() |
String |
normalize(String path)
Normalize a given path.
|
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, get, incRef, init, release
empty, move, sizeOf, sizeOfDirectory
public boolean exists(String path)
DirectoryFactory
exists
in class CachingDirectoryFactory
public boolean isPersistent()
isPersistent
in class DirectoryFactory
public void remove(Directory dir) throws IOException
DirectoryFactory
remove
in class DirectoryFactory
IOException
- If there is a low-level I/O error.public void remove(String path) throws IOException
DirectoryFactory
remove
in class DirectoryFactory
path
- to removeIOException
- If there is a low-level I/O error.public String normalize(String path) throws IOException
DirectoryFactory
normalize
in class DirectoryFactory
path
- to normalizeIOException
- on io errorCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.