public class HdfsDirectoryFactory extends CachingDirectoryFactory implements SolrInfoMBean
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListenerDirectoryFactory.DirContextSolrInfoMBean.Category| Modifier and Type | Field and Description |
|---|---|
static String |
BLOCKCACHE_DIRECT_MEMORY_ALLOCATION |
static String |
BLOCKCACHE_ENABLED |
static String |
BLOCKCACHE_GLOBAL |
static String |
BLOCKCACHE_READ_ENABLED |
static String |
BLOCKCACHE_SLAB_COUNT |
static String |
BLOCKCACHE_WRITE_ENABLED |
static String |
CONFIG_DIRECTORY |
static String |
HDFS_HOME |
static String |
KERBEROS_ENABLED |
static String |
KERBEROS_KEYTAB |
static String |
KERBEROS_PRINCIPAL |
static org.slf4j.Logger |
LOG |
static Metrics |
metrics |
static String |
NRTCACHINGDIRECTORY_ENABLE |
static String |
NRTCACHINGDIRECTORY_MAXCACHEMB |
static String |
NRTCACHINGDIRECTORY_MAXMERGESIZEMB |
static String |
NUMBEROFBLOCKSPERBANK |
byDirectoryCache, byPathCache, closeListeners, removeEntriesIOCONTEXT_NO_CACHE| Constructor and Description |
|---|
HdfsDirectoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Directory |
create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext)
Creates a new Directory for a given path.
|
protected LockFactory |
createLockFactory(String rawLockType)
Creates a new LockFactory for a given path.
|
boolean |
exists(String path)
Returns true if a Directory exists for a given path.
|
SolrInfoMBean.Category |
getCategory()
Purpose of this Class
|
String |
getConfDir() |
String |
getDataHome(CoreDescriptor cd) |
String |
getDescription()
Simple one or two line description
|
URL[] |
getDocs()
Documentation URL list.
|
String |
getName()
Simple common usage name, e.g.
|
String |
getSource()
CVS Source, SVN Source, etc
|
NamedList<?> |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
String |
getVersion()
Simple common usage version, e.g.
|
void |
init(NamedList args) |
boolean |
isAbsolute(String path) |
boolean |
isPersistent() |
boolean |
isSharedStorage() |
protected void |
removeDirectory(CachingDirectoryFactory.CacheValue cacheValue) |
boolean |
searchersReserveCommitPoints()
If your implementation can count on delete-on-last-close semantics
or throws an exception when trying to remove a file in use, return
false (eg NFS).
|
addCloseListener, close, doneWithDirectory, get, getLivePaths, incRef, normalize, release, remove, remove, remove, remove, stripTrailingSlashempty, move, sizeOf, sizeOfDirectorypublic static org.slf4j.Logger LOG
public static final String BLOCKCACHE_SLAB_COUNT
public static final String BLOCKCACHE_DIRECT_MEMORY_ALLOCATION
public static final String BLOCKCACHE_ENABLED
public static final String BLOCKCACHE_GLOBAL
public static final String BLOCKCACHE_READ_ENABLED
public static final String BLOCKCACHE_WRITE_ENABLED
public static final String NRTCACHINGDIRECTORY_ENABLE
public static final String NRTCACHINGDIRECTORY_MAXMERGESIZEMB
public static final String NRTCACHINGDIRECTORY_MAXCACHEMB
public static final String NUMBEROFBLOCKSPERBANK
public static final String KERBEROS_ENABLED
public static final String KERBEROS_KEYTAB
public static final String KERBEROS_PRINCIPAL
public static final String HDFS_HOME
public static final String CONFIG_DIRECTORY
public static Metrics metrics
public void init(NamedList args)
init in interface NamedListInitializedPlugininit in class CachingDirectoryFactoryprotected LockFactory createLockFactory(String rawLockType) throws IOException
DirectoryFactorycreateLockFactory in class DirectoryFactoryrawLockType - A string value as passed in config. Every factory should at least support 'none' to disable locking.IOException - If there is a low-level I/O error.protected Directory create(String path, LockFactory lockFactory, DirectoryFactory.DirContext dirContext) throws IOException
DirectoryFactorycreate in class DirectoryFactoryIOException - If there is a low-level I/O error.public boolean exists(String path)
DirectoryFactoryexists in class CachingDirectoryFactoryprotected void removeDirectory(CachingDirectoryFactory.CacheValue cacheValue) throws IOException
removeDirectory in class CachingDirectoryFactoryIOExceptionpublic boolean isAbsolute(String path)
isAbsolute in class DirectoryFactorypath - the path to checkpublic boolean isPersistent()
isPersistent in class DirectoryFactorypublic boolean isSharedStorage()
isSharedStorage in class DirectoryFactorypublic boolean searchersReserveCommitPoints()
DirectoryFactorysearchersReserveCommitPoints in class DirectoryFactorypublic String getDataHome(CoreDescriptor cd) throws IOException
getDataHome in class DirectoryFactoryIOExceptionpublic String getConfDir()
public String getName()
SolrInfoMBeangetName in interface SolrInfoMBeanpublic String getVersion()
SolrInfoMBeangetVersion in interface SolrInfoMBeanpublic String getDescription()
SolrInfoMBeangetDescription in interface SolrInfoMBeanpublic SolrInfoMBean.Category getCategory()
SolrInfoMBeangetCategory in interface SolrInfoMBeanpublic String getSource()
SolrInfoMBeangetSource in interface SolrInfoMBeanpublic URL[] getDocs()
SolrInfoMBeanSuggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs in interface SolrInfoMBeanpublic NamedList<?> getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString() representation will be used.
getStatistics in interface SolrInfoMBeanCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.