Instantiates Cache and Decision plugins. Parses configuration file. More...
#include <XrdFileCacheFactory.hh>


Public Member Functions | |
| Factory () | |
| Constructor. | |
| virtual XrdOucCacheIO * | Attach (XrdOucCacheIO *, int Options=0) |
| Unused abstract method. This method is implemented in the the Cache class. | |
| virtual int | isAttached () |
| Unused abstract method. This information is available in the Cache class. | |
| virtual XrdOucCache * | Create (Parms &, XrdOucCacheIO::aprParms *aprP) |
| Creates XrdFileCache::Cache object. | |
| XrdOss * | GetOss () const |
| XrdSysError & | GetSysError () |
| Getter for xrootd logger. | |
| bool | Decide (XrdOucCacheIO *) |
| Makes decision if the original XrdOucCacheIO should be cached. | |
| const Configuration & | RefConfiguration () const |
| Reference XrdFileCache configuration. | |
| bool | Config (XrdSysLogger *logger, const char *config_filename, const char *parameters) |
| Parse configuration file. | |
| void | CacheDirCleanup () |
| Thread function running disk cache purge periodically. | |
Static Public Member Functions | |
| static Factory & | GetInstance () |
| Singleton access. | |
| static bool | VCheck (XrdVersionInfo &urVersion) |
| Version check. | |
Private Member Functions | |
| bool | CheckFileForDiskSpace (const char *path, long long fsize) |
| void | UnCheckFileForDiskSpace (const char *path) |
| bool | ConfigParameters (std::string, XrdOucStream &) |
| bool | ConfigXeq (char *, XrdOucStream &) |
| bool | xdlib (XrdOucStream &) |
| XrdCl::Log * | clLog () const |
Private Attributes | |
| XrdSysError | m_log |
| XrdFileCache namespace logger. | |
| XrdOucCacheStats | m_stats |
| passed to cache, currently not used | |
| XrdOss * | m_output_fs |
| disk cache file system | |
| std::vector < XrdFileCache::Decision * > | m_decisionpoints |
| decision plugins | |
| std::map< std::string, long long > | m_filesInQueue |
| Configuration | m_configuration |
| configurable parameters | |
Static Private Attributes | |
| static Factory * | m_factory |
| this object | |
Instantiates Cache and Decision plugins. Parses configuration file.
| XrdFileCache::Factory::Factory | ( | ) |
Constructor.
| virtual XrdOucCacheIO* XrdFileCache::Factory::Attach | ( | XrdOucCacheIO * | , | |
| int | Options = 0 | |||
| ) | [inline, virtual] |
Unused abstract method. This method is implemented in the the Cache class.
Implements XrdOucCache.
| void XrdFileCache::Factory::CacheDirCleanup | ( | ) |
Thread function running disk cache purge periodically.
| bool XrdFileCache::Factory::CheckFileForDiskSpace | ( | const char * | path, | |
| long long | fsize | |||
| ) | [private] |
| XrdCl::Log* XrdFileCache::Factory::clLog | ( | ) | const [inline, private] |
References XrdCl::DefaultEnv::GetLog().
| bool XrdFileCache::Factory::Config | ( | XrdSysLogger * | logger, | |
| const char * | config_filename, | |||
| const char * | parameters | |||
| ) |
Parse configuration file.
| logger | xrootd logger | |
| config_filename | path to configuration file | |
| parameters | optional parameters to be passed |
| bool XrdFileCache::Factory::ConfigParameters | ( | std::string | , | |
| XrdOucStream & | ||||
| ) | [private] |
| bool XrdFileCache::Factory::ConfigXeq | ( | char * | , | |
| XrdOucStream & | ||||
| ) | [private] |
| virtual XrdOucCache* XrdFileCache::Factory::Create | ( | Parms & | , | |
| XrdOucCacheIO::aprParms * | aprP | |||
| ) | [virtual] |
Creates XrdFileCache::Cache object.
Implements XrdOucCache.
| bool XrdFileCache::Factory::Decide | ( | XrdOucCacheIO * | ) |
Makes decision if the original XrdOucCacheIO should be cached.
| & | URL of file |
| static Factory& XrdFileCache::Factory::GetInstance | ( | ) | [static] |
Singleton access.
| XrdOss* XrdFileCache::Factory::GetOss | ( | ) | const [inline] |
References m_output_fs.
| XrdSysError& XrdFileCache::Factory::GetSysError | ( | ) | [inline] |
Getter for xrootd logger.
References m_log.
| virtual int XrdFileCache::Factory::isAttached | ( | ) | [inline, virtual] |
Unused abstract method. This information is available in the Cache class.
Reimplemented from XrdOucCache.
| const Configuration& XrdFileCache::Factory::RefConfiguration | ( | ) | const [inline] |
Reference XrdFileCache configuration.
References m_configuration.
| void XrdFileCache::Factory::UnCheckFileForDiskSpace | ( | const char * | path | ) | [private] |
| static bool XrdFileCache::Factory::VCheck | ( | XrdVersionInfo & | urVersion | ) | [inline, static] |
Version check.
| bool XrdFileCache::Factory::xdlib | ( | XrdOucStream & | ) | [private] |
configurable parameters
Referenced by RefConfiguration().
std::vector<XrdFileCache::Decision*> XrdFileCache::Factory::m_decisionpoints [private] |
decision plugins
Factory* XrdFileCache::Factory::m_factory [static, private] |
this object
std::map<std::string, long long> XrdFileCache::Factory::m_filesInQueue [private] |
XrdSysError XrdFileCache::Factory::m_log [private] |
XrdFileCache namespace logger.
Referenced by GetSysError().
XrdOss* XrdFileCache::Factory::m_output_fs [private] |
disk cache file system
Referenced by GetOss().
passed to cache, currently not used
1.6.1