#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 |
Source & | operator= (const Source &)=delete |
const std::string & | PrettyID () const |
void | setLastDowngrade (struct timespec now) |
const std::string & | Site () const |
Source (const Source &)=delete | |
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 23 of file XrdSource.h.
|
delete |
Source::Source | ( | timespec | now, |
std::unique_ptr< XrdCl::File > | fileHandle, | ||
const std::string & | exclude | ||
) |
Definition at line 183 of file XrdSource.cc.
Source::~Source | ( | ) |
Definition at line 367 of file XrdSource.cc.
References fh(), m_id, and m_site.
|
static |
Definition at line 290 of file XrdSource.cc.
References geometryDiff::file, info(), isDCachePool(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), and XrdAdaptor::RequestManager::initialize().
|
inline |
|
inlineprivate |
Definition at line 71 of file XrdSource.h.
References edm::get_underlying_safe(), and m_fh.
Referenced by getFileHandle(), getXrootdSite(), and ~Source().
|
inlineprivate |
Definition at line 72 of file XrdSource.h.
References edm::get_underlying_safe(), and m_fh.
|
static |
Definition at line 248 of file XrdSource.cc.
References getHostname(), and query::host.
Referenced by getXrootdSite(), getXrootdSiteFromURL(), and XrdAdaptor::RequestManager::initialize().
std::shared_ptr< XrdCl::File > Source::getFileHandle | ( | ) |
|
static |
Definition at line 221 of file XrdSource.cc.
References query::host, l1ctLayer2EG_cff::id, and mps_fire::result.
Referenced by XrdAdaptor::RequestManager::compareSources(), getDomain(), XrdAdaptor::RequestManager::initialize(), XrdAdaptor::RequestManager::queueUpdateCurrentServer(), and XrdAdaptor::RequestManager::reportSiteChange().
|
inline |
|
inline |
Definition at line 43 of file XrdSource.h.
References m_qm.
|
static |
Definition at line 306 of file XrdSource.cc.
References fh(), getDomain(), getXrootdSiteFromURL(), l1ctLayer2EG_cff::id, isDCachePool(), contentValuesFiles::server, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setXrootdSite().
|
static |
Definition at line 328 of file XrdSource.cc.
References getDomain(), QueryAttrHandler::query(), seconds(), AlCaHLTBitMon_QueryRunRegistry::string, hcal_runs::URL, and relmon_authenticated_wget::url.
Referenced by getXrootdSite(), and XrdAdaptor::RequestManager::initialize().
void Source::handle | ( | std::shared_ptr< ClientRequest > | c | ) |
Definition at line 383 of file XrdSource.cc.
References cms::Exception::addContext(), HltBtagPostValidation_cff::c, haddnano::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 258 of file XrdSource.cc.
References geometryDiff::file, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by determineHostExcludeString(), getXrootdSite(), and SendMonitoringInfo().
|
static |
Definition at line 280 of file XrdSource.cc.
References genParticles_cff::map, hcal_runs::URL, and relmon_authenticated_wget::url.
|
inline |
|
private |
|
inline |
Definition at line 48 of file XrdSource.h.
References m_lastDowngrade, and submitPVValidationJobs::now.
|
private |
Definition at line 354 of file XrdSource.cc.
References getXrootdSite(), m_fh, m_id, m_prettyid, m_site, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
|
inlineprivate |
Definition at line 73 of file XrdSource.h.
References edm::get_underlying_safe(), and m_stats.
Referenced by handle().
|
inlineprivate |
Definition at line 74 of file XrdSource.h.
References edm::get_underlying_safe(), and m_stats.
|
private |
Definition at line 80 of file XrdSource.h.
Referenced by ExcludeID().
|
private |
Definition at line 81 of file XrdSource.h.
Referenced by fh(), handle(), and setXrootdSite().
|
private |
Definition at line 77 of file XrdSource.h.
Referenced by ID(), setXrootdSite(), and ~Source().
|
private |
Definition at line 76 of file XrdSource.h.
Referenced by getLastDowngrade(), and setLastDowngrade().
|
private |
Definition at line 78 of file XrdSource.h.
Referenced by PrettyID(), and setXrootdSite().
|
private |
Definition at line 83 of file XrdSource.h.
Referenced by getQuality(), and handle().
|
private |
Definition at line 79 of file XrdSource.h.
Referenced by setXrootdSite(), Site(), and ~Source().
|
private |
Definition at line 84 of file XrdSource.h.