#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.
References fh(), g_delayCount, XrdAdaptor::QualityMetricFactory::get(), edm::propagate_const< T >::get(), getDomain(), XrdAdaptor::XrdSiteStatisticsInformation::getInstance(), m_exclude, m_fh, m_id, m_prettyid, m_qm, m_site, m_stats, eostools::move(), cmsPerfSuiteHarvest::now, setXrootdSite(), and AlCaHLTBitMon_QueryRunRegistry::string.
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 |
Definition at line 40 of file XrdSource.h.
|
inlineprivate |
Definition at line 68 of file XrdSource.h.
References edm::get_underlying_safe().
Referenced by getFileHandle(), Source(), and ~Source().
|
inlineprivate |
Definition at line 69 of file XrdSource.h.
References edm::get_underlying_safe().
|
static |
Definition at line 255 of file XrdSource.cc.
References getHostname().
Referenced by getXrootdSite(), getXrootdSiteFromURL(), XrdAdaptor::RequestManager::initialize(), and Source().
std::shared_ptr< XrdCl::File > Source::getFileHandle | ( | ) |
|
static |
Definition at line 227 of file XrdSource.cc.
References query::host, triggerObjects_cff::id, and mps_fire::result.
Referenced by getDomain(), XrdAdaptor::RequestManager::initialize(), and XrdAdaptor::RequestManager::queueUpdateCurrentServer().
|
inline |
Definition at line 44 of file XrdSource.h.
|
inline |
Definition at line 42 of file XrdSource.h.
|
static |
Definition at line 326 of file XrdSource.cc.
References getDomain(), getXrootdSiteFromURL(), triggerObjects_cff::id, isDCachePool(), definitions::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(), mps_update::status, and validateList().
void XrdAdaptor::Source::handle | ( | RequestList & | ) |
|
inline |
|
static |
Definition at line 266 of file XrdSource.cc.
References mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by determineHostExcludeString(), getXrootdSite(), and SendMonitoringInfo().
|
static |
Definition at line 293 of file XrdSource.cc.
References genParticles_cff::map, and relmon_authenticated_wget::url.
|
inline |
Definition at line 39 of file XrdSource.h.
Referenced by XrdAdaptor::ClientRequest::HandleResponse().
|
private |
|
inline |
Definition at line 45 of file XrdSource.h.
References FrontierConditions_GlobalTag_cff::file, ecalTB2006H4_GenSimDigiReco_cfg::File, query::host, cmsPerfSuiteHarvest::now, AlCaHLTBitMon_QueryRunRegistry::string, and relmon_authenticated_wget::url.
|
private |
Definition at line 376 of file XrdSource.cc.
References getXrootdSite(), m_fh, m_id, m_prettyid, m_site, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by Source().
|
inline |
Definition at line 38 of file XrdSource.h.
|
inlineprivate |
Definition at line 70 of file XrdSource.h.
References edm::get_underlying_safe().
Referenced by handle().
|
inlineprivate |
Definition at line 71 of file XrdSource.h.
References edm::get_underlying_safe().
|
private |
Definition at line 77 of file XrdSource.h.
Referenced by Source().
|
private |
Definition at line 78 of file XrdSource.h.
Referenced by handle(), setXrootdSite(), and Source().
|
private |
Definition at line 74 of file XrdSource.h.
Referenced by setXrootdSite(), Source(), and ~Source().
|
private |
Definition at line 73 of file XrdSource.h.
|
private |
Definition at line 75 of file XrdSource.h.
Referenced by setXrootdSite(), and Source().
|
private |
Definition at line 80 of file XrdSource.h.
|
private |
Definition at line 76 of file XrdSource.h.
Referenced by setXrootdSite(), Source(), and ~Source().
|
private |
Definition at line 81 of file XrdSource.h.