CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
XrdAdaptor::Source Class Reference

#include <XrdSource.h>

Inheritance diagram for XrdAdaptor::Source:

Public Member Functions

const std::string & ExcludeID () const
 
std::shared_ptr< XrdCl::File > getFileHandle ()
 
struct timespec getLastDowngrade () const
 
unsigned getQuality ()
 
void handle (std::shared_ptr< ClientRequest >)
 
void handle (RequestList &)
 
const std::string & ID () const
 
const std::string & PrettyID () const
 
void setLastDowngrade (struct timespec now)
 
const std::string & Site () const
 
 Source (timespec now, std::unique_ptr< XrdCl::File > fileHandle, const std::string &exclude)
 
 ~Source ()
 

Static Public Member Functions

static void determineHostExcludeString (XrdCl::File &file, const XrdCl::HostList *hostList, std::string &exclude)
 
static bool getDomain (const std::string &host, std::string &domain)
 
static bool getHostname (const std::string &id, std::string &hostname)
 
static bool getXrootdSite (XrdCl::File &file, std::string &site)
 
static bool getXrootdSiteFromURL (std::string url, std::string &site)
 
static bool isDCachePool (XrdCl::File &file, const XrdCl::HostList *hostList=nullptr)
 
static bool isDCachePool (const std::string &url)
 

Private Member Functions

std::shared_ptr< XrdCl::File
const > 
fh () const
 
std::shared_ptr< XrdCl::File > & fh ()
 
void requestCallback ()
 
void setXrootdSite ()
 
std::shared_ptr
< XrdSiteStatistics const > 
stats () const
 
std::shared_ptr
< XrdSiteStatistics > & 
stats ()
 

Private Attributes

std::string m_exclude
 
edm::propagate_const
< std::shared_ptr< XrdCl::File > > 
m_fh
 
std::string m_id
 
struct timespec m_lastDowngrade
 
std::string m_prettyid
 
edm::propagate_const
< std::unique_ptr
< QualityMetricSource > > 
m_qm
 
std::string m_site
 
edm::propagate_const
< std::shared_ptr
< XrdSiteStatistics > > 
m_stats
 

Detailed Description

Definition at line 24 of file XrdSource.h.

Constructor & Destructor Documentation

Source::Source ( timespec  now,
std::unique_ptr< XrdCl::File >  fileHandle,
const std::string &  exclude 
)

Definition at line 190 of file XrdSource.cc.

Source::~Source ( )

Definition at line 393 of file XrdSource.cc.

Member Function Documentation

void Source::determineHostExcludeString ( XrdCl::File &  file,
const XrdCl::HostList *  hostList,
std::string &  exclude 
)
static

Definition at line 307 of file XrdSource.cc.

const std::string& XrdAdaptor::Source::ExcludeID ( ) const
inline

Definition at line 40 of file XrdSource.h.

References m_exclude.

40 {return m_exclude;}
std::string m_exclude
Definition: XrdSource.h:77
std::shared_ptr<XrdCl::File const> XrdAdaptor::Source::fh ( ) const
inlineprivate

Definition at line 68 of file XrdSource.h.

References edm::get_underlying_safe(), and m_fh.

68 {return get_underlying_safe(m_fh);}
edm::propagate_const< std::shared_ptr< XrdCl::File > > m_fh
Definition: XrdSource.h:78
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
std::shared_ptr<XrdCl::File>& XrdAdaptor::Source::fh ( )
inlineprivate

Definition at line 69 of file XrdSource.h.

References edm::get_underlying_safe(), and m_fh.

69 {return get_underlying_safe(m_fh);}
edm::propagate_const< std::shared_ptr< XrdCl::File > > m_fh
Definition: XrdSource.h:78
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
bool Source::getDomain ( const std::string &  host,
std::string &  domain 
)
static

Definition at line 255 of file XrdSource.cc.

std::shared_ptr< XrdCl::File > Source::getFileHandle ( )

Definition at line 399 of file XrdSource.cc.

bool Source::getHostname ( const std::string &  id,
std::string &  hostname 
)
static

Definition at line 227 of file XrdSource.cc.

struct timespec XrdAdaptor::Source::getLastDowngrade ( ) const
inline

Definition at line 44 of file XrdSource.h.

References m_lastDowngrade.

44 {return m_lastDowngrade;}
struct timespec m_lastDowngrade
Definition: XrdSource.h:73
unsigned XrdAdaptor::Source::getQuality ( )
inline

Definition at line 42 of file XrdSource.h.

References m_qm.

42 {return m_qm->get();}
edm::propagate_const< std::unique_ptr< QualityMetricSource > > m_qm
Definition: XrdSource.h:80
bool Source::getXrootdSite ( XrdCl::File &  file,
std::string &  site 
)
static

Definition at line 326 of file XrdSource.cc.

bool Source::getXrootdSiteFromURL ( std::string  url,
std::string &  site 
)
static

Definition at line 344 of file XrdSource.cc.

void Source::handle ( std::shared_ptr< ClientRequest c)

Definition at line 420 of file XrdSource.cc.

void XrdAdaptor::Source::handle ( RequestList &  )
const std::string& XrdAdaptor::Source::ID ( ) const
inline

Definition at line 37 of file XrdSource.h.

References m_id.

37 {return m_id;}
std::string m_id
Definition: XrdSource.h:74
bool Source::isDCachePool ( XrdCl::File &  file,
const XrdCl::HostList *  hostList = nullptr 
)
static

Definition at line 266 of file XrdSource.cc.

bool Source::isDCachePool ( const std::string &  url)
static

Definition at line 293 of file XrdSource.cc.

const std::string& XrdAdaptor::Source::PrettyID ( ) const
inline

Definition at line 39 of file XrdSource.h.

References m_prettyid.

Referenced by XrdAdaptor::ClientRequest::HandleResponse().

39 {return m_prettyid;}
std::string m_prettyid
Definition: XrdSource.h:75
void XrdAdaptor::Source::requestCallback ( )
private
void XrdAdaptor::Source::setLastDowngrade ( struct timespec  now)
inline

Definition at line 45 of file XrdSource.h.

References m_lastDowngrade, and fileCollector::now.

struct timespec m_lastDowngrade
Definition: XrdSource.h:73
void Source::setXrootdSite ( )
private

Definition at line 376 of file XrdSource.cc.

const std::string& XrdAdaptor::Source::Site ( ) const
inline

Definition at line 38 of file XrdSource.h.

References m_site.

38 {return m_site;}
std::string m_site
Definition: XrdSource.h:76
std::shared_ptr<XrdSiteStatistics const> XrdAdaptor::Source::stats ( ) const
inlineprivate

Definition at line 70 of file XrdSource.h.

References edm::get_underlying_safe(), and m_stats.

edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_stats
Definition: XrdSource.h:81
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
std::shared_ptr<XrdSiteStatistics>& XrdAdaptor::Source::stats ( )
inlineprivate

Definition at line 71 of file XrdSource.h.

References edm::get_underlying_safe(), and m_stats.

edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_stats
Definition: XrdSource.h:81
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)

Member Data Documentation

std::string XrdAdaptor::Source::m_exclude
private

Definition at line 77 of file XrdSource.h.

Referenced by ExcludeID().

edm::propagate_const<std::shared_ptr<XrdCl::File> > XrdAdaptor::Source::m_fh
private

Definition at line 78 of file XrdSource.h.

Referenced by fh().

std::string XrdAdaptor::Source::m_id
private

Definition at line 74 of file XrdSource.h.

Referenced by ID().

struct timespec XrdAdaptor::Source::m_lastDowngrade
private

Definition at line 73 of file XrdSource.h.

Referenced by getLastDowngrade(), and setLastDowngrade().

std::string XrdAdaptor::Source::m_prettyid
private

Definition at line 75 of file XrdSource.h.

Referenced by PrettyID().

edm::propagate_const<std::unique_ptr<QualityMetricSource> > XrdAdaptor::Source::m_qm
private

Definition at line 80 of file XrdSource.h.

Referenced by getQuality().

std::string XrdAdaptor::Source::m_site
private

Definition at line 76 of file XrdSource.h.

Referenced by Site().

edm::propagate_const<std::shared_ptr<XrdSiteStatistics> > XrdAdaptor::Source::m_stats
private

Definition at line 81 of file XrdSource.h.

Referenced by stats().