public abstract class EphemeralDirectoryFactory extends CachingDirectoryFactory
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListener
DirectoryFactory.DirContext
byDirectoryCache, byPathCache, closeListeners, removeEntries
coreContainer, INDEX_W_TIMESTAMP_REGEX, IOCONTEXT_NO_CACHE, LOCK_TYPE_HDFS, LOCK_TYPE_NATIVE, LOCK_TYPE_NONE, LOCK_TYPE_SIMPLE, LOCK_TYPE_SINGLE
Constructor and Description |
---|
EphemeralDirectoryFactory() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupOldIndexDirectories(String dataDirPath,
String currentIndexDirPath,
boolean reload) |
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, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, getPath, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlash
create, createLockFactory, empty, getBaseDir, getDataHome, initCoreContainer, isSharedStorage, move, offerMBeans, renameWithOverwrite, searchersReserveCommitPoints, size, size, 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.public void cleanupOldIndexDirectories(String dataDirPath, String currentIndexDirPath, boolean reload)
cleanupOldIndexDirectories
in class DirectoryFactory
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.