public abstract class EphemeralDirectoryFactory extends CachingDirectoryFactory
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListenerDirectoryFactory.DirContextbyDirectoryCache, byPathCache, closeListeners, removeEntriescoreContainer, dataHomePath, 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 in the underlying (stable) storage and 
 contains at least one file. 
 | 
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, stripTrailingSlashcreate, createLockFactory, empty, getBaseDir, getDataHome, initCoreContainer, isSharedStorage, move, renameWithOverwrite, searchersReserveCommitPoints, size, size, sizeOf, sizeOfDirectorypublic boolean exists(String path) throws IOException
DirectoryFactoryDirectory Object as returned by a previous call to the 
 DirectoryFactory.get(java.lang.String, org.apache.solr.core.DirectoryFactory.DirContext, java.lang.String) method (on the specified path) is not enough to cause this method to return 
 true.  Some prior user of that Directory must have written & synced at least one file to that 
 Directory (and at least one file must still exist)exists in class CachingDirectoryFactoryIOException - If there is a low-level I/O error.public boolean isPersistent()
isPersistent in class DirectoryFactorypublic boolean isAbsolute(String path)
isAbsolute in class DirectoryFactorypath - the path to checkpublic void remove(Directory dir) throws IOException
DirectoryFactoryremove in class CachingDirectoryFactoryIOException - If there is a low-level I/O error.public void remove(String path) throws IOException
DirectoryFactoryremove in class CachingDirectoryFactorypath - to removeIOException - If there is a low-level I/O error.public void cleanupOldIndexDirectories(String dataDirPath, String currentIndexDirPath, boolean reload)
cleanupOldIndexDirectories in class DirectoryFactoryCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.