XrdFileCache::Factory Class Reference

Instantiates Cache and Decision plugins. Parses configuration file. More...

#include <XrdFileCacheFactory.hh>

Inheritance diagram for XrdFileCache::Factory:

Inheritance graph
[legend]
Collaboration diagram for XrdFileCache::Factory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Factory ()
 Constructor.
virtual XrdOucCacheIOAttach (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 XrdOucCacheCreate (Parms &, XrdOucCacheIO::aprParms *aprP)
 Creates XrdFileCache::Cache object.
XrdOssGetOss () const
XrdSysErrorGetSysError ()
 Getter for xrootd logger.
bool Decide (XrdOucCacheIO *)
 Makes decision if the original XrdOucCacheIO should be cached.
const ConfigurationRefConfiguration () 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 FactoryGetInstance ()
 Singleton access.
static bool VCheck (XrdVersionInfo &urVersion)
 Version check.

Private Member Functions

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
XrdOssm_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 Factorym_factory
 this object

Detailed Description

Instantiates Cache and Decision plugins. Parses configuration file.


Constructor & Destructor Documentation

XrdFileCache::Factory::Factory (  ) 

Constructor.


Member Function Documentation

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.

XrdCl::Log* XrdFileCache::Factory::clLog (  )  const [inline, private]

bool XrdFileCache::Factory::Config ( XrdSysLogger logger,
const char *  config_filename,
const char *  parameters 
)

Parse configuration file.

Parameters:
logger xrootd logger
config_filename path to configuration file
parameters optional parameters to be passed
Returns:
parse status

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.

bool XrdFileCache::Factory::Decide ( XrdOucCacheIO  ) 

Makes decision if the original XrdOucCacheIO should be cached.

Parameters:
& URL of file
Returns:
decision if IO object will be cached.

static Factory& XrdFileCache::Factory::GetInstance (  )  [static]

Singleton access.

XrdOss* XrdFileCache::Factory::GetOss (  )  const [inline]

XrdSysError& XrdFileCache::Factory::GetSysError (  )  [inline]

Getter for xrootd logger.

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.

static bool XrdFileCache::Factory::VCheck ( XrdVersionInfo &  urVersion  )  [inline, static]

Version check.

bool XrdFileCache::Factory::xdlib ( XrdOucStream  )  [private]


Member Data Documentation

Configuration XrdFileCache::Factory::m_configuration [private]

configurable parameters

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.

XrdOss* XrdFileCache::Factory::m_output_fs [private]

disk cache file system

XrdOucCacheStats XrdFileCache::Factory::m_stats [private]

passed to cache, currently not used


The documentation for this class was generated from the following file:
Generated on 5 Oct 2016 for xrootd by  doxygen 1.4.7