#include <XrdSource.h>
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 |
Definition at line 24 of file XrdSource.h.
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.
References fh(), m_id, and m_site.
|
static |
Definition at line 307 of file XrdSource.cc.
References info(), isDCachePool(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), and XrdAdaptor::RequestManager::initialize().
|
inline |
|
inlineprivate |
Definition at line 68 of file XrdSource.h.
References edm::get_underlying_safe(), and m_fh.
Referenced by getFileHandle(), and ~Source().
|
inlineprivate |
Definition at line 69 of file XrdSource.h.
References edm::get_underlying_safe(), and m_fh.
|
static |
Definition at line 255 of file XrdSource.cc.
References getHostname().
Referenced by getXrootdSite(), getXrootdSiteFromURL(), and XrdAdaptor::RequestManager::initialize().
std::shared_ptr< XrdCl::File > Source::getFileHandle | ( | ) |
|
static |
Definition at line 227 of file XrdSource.cc.
References query::host, NULL, and query::result.
Referenced by getDomain(), XrdAdaptor::RequestManager::initialize(), and XrdAdaptor::RequestManager::queueUpdateCurrentServer().
|
inline |
|
inline |
Definition at line 42 of file XrdSource.h.
References m_qm.
|
static |
Definition at line 326 of file XrdSource.cc.
References getDomain(), getXrootdSiteFromURL(), isDCachePool(), contentValuesFiles::server, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setXrootdSite().
|
static |
Definition at line 344 of file XrdSource.cc.
References getDomain(), QueryAttrHandler::query(), seconds(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getXrootdSite(), and XrdAdaptor::RequestManager::initialize().
void Source::handle | ( | std::shared_ptr< ClientRequest > | c | ) |
Definition at line 420 of file XrdSource.cc.
References cms::Exception::addContext(), EnergyCorrector::c, GetRecoTauVFromDQM_MC_cff::cl, edm::errors::FileReadError, ID(), m_fh, m_qm, m_stats, XrdAdaptor::XrdSiteStatistics::startRead(), stats(), ntuplemaker::status, and validateList().
void XrdAdaptor::Source::handle | ( | RequestList & | ) |
|
inline |
|
static |
Definition at line 266 of file XrdSource.cc.
References query::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by determineHostExcludeString(), getXrootdSite(), and SendMonitoringInfo().
|
static |
|
inline |
Definition at line 39 of file XrdSource.h.
References m_prettyid.
Referenced by XrdAdaptor::ClientRequest::HandleResponse().
|
private |
|
inline |
|
private |
Definition at line 376 of file XrdSource.cc.
References getXrootdSite(), m_fh, m_id, m_prettyid, m_site, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
|
inlineprivate |
Definition at line 70 of file XrdSource.h.
References edm::get_underlying_safe(), and m_stats.
Referenced by handle().
|
inlineprivate |
Definition at line 71 of file XrdSource.h.
References edm::get_underlying_safe(), and m_stats.
|
private |
Definition at line 77 of file XrdSource.h.
Referenced by ExcludeID().
|
private |
Definition at line 78 of file XrdSource.h.
Referenced by fh(), handle(), and setXrootdSite().
|
private |
Definition at line 74 of file XrdSource.h.
Referenced by ID(), setXrootdSite(), and ~Source().
|
private |
Definition at line 73 of file XrdSource.h.
Referenced by getLastDowngrade(), and setLastDowngrade().
|
private |
Definition at line 75 of file XrdSource.h.
Referenced by PrettyID(), and setXrootdSite().
|
private |
Definition at line 80 of file XrdSource.h.
Referenced by getQuality(), and handle().
|
private |
Definition at line 76 of file XrdSource.h.
Referenced by setXrootdSite(), Site(), and ~Source().
|
private |
Definition at line 81 of file XrdSource.h.