#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 | |
void | requestCallback () |
void | setXrootdSite () |
Private Attributes | |
std::string | m_exclude |
std::shared_ptr< XrdCl::File > | m_fh |
std::string | m_id |
struct timespec | m_lastDowngrade |
std::string | m_prettyid |
std::unique_ptr < QualityMetricSource > | m_qm |
std::string | m_site |
std::shared_ptr < XrdSiteStatistics > | m_stats |
Definition at line 22 of file XrdSource.h.
Source::Source | ( | timespec | now, |
std::unique_ptr< XrdCl::File > | fileHandle, | ||
const std::string & | exclude | ||
) |
Definition at line 79 of file XrdSource.cc.
Source::~Source | ( | ) |
Definition at line 283 of file XrdSource.cc.
References m_fh, m_id, and m_site.
|
static |
Definition at line 196 of file XrdSource.cc.
References info(), isDCachePool(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), and XrdAdaptor::RequestManager::initialize().
|
inline |
|
static |
Definition at line 144 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 116 of file XrdSource.cc.
References query::host, NULL, and query::result.
Referenced by getDomain(), XrdAdaptor::RequestManager::initialize(), and XrdAdaptor::RequestManager::queueUpdateCurrentServer().
|
inline |
|
inline |
|
static |
Definition at line 215 of file XrdSource.cc.
References getDomain(), getXrootdSiteFromURL(), isDCachePool(), contentValuesFiles::server, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setXrootdSite().
|
static |
Definition at line 233 of file XrdSource.cc.
References helper::Config, getDomain(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getXrootdSite(), and XrdAdaptor::RequestManager::initialize().
void Source::handle | ( | std::shared_ptr< ClientRequest > | c | ) |
Definition at line 310 of file XrdSource.cc.
References EnergyCorrector::c, GetRecoTauVFromDQM_MC_cff::cl, ID(), m_fh, m_qm, m_stats, XrdAdaptor::XrdSiteStatistics::startRead(), and validateList().
void XrdAdaptor::Source::handle | ( | RequestList & | ) |
|
inline |
|
static |
Definition at line 155 of file XrdSource.cc.
References query::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by determineHostExcludeString(), getXrootdSite(), and SendMonitoringInfo().
|
static |
Definition at line 182 of file XrdSource.cc.
References python.multivaluedict::map(), and relmon_authenticated_wget::url.
|
inline |
Definition at line 37 of file XrdSource.h.
References m_prettyid.
Referenced by XrdAdaptor::ClientRequest::HandleResponse().
|
private |
|
inline |
|
private |
Definition at line 266 of file XrdSource.cc.
References getXrootdSite(), m_fh, m_id, m_prettyid, m_site, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
|
private |
Definition at line 70 of file XrdSource.h.
Referenced by ExcludeID().
|
private |
Definition at line 71 of file XrdSource.h.
Referenced by getFileHandle(), handle(), setXrootdSite(), and ~Source().
|
private |
Definition at line 67 of file XrdSource.h.
Referenced by ID(), setXrootdSite(), and ~Source().
|
private |
Definition at line 66 of file XrdSource.h.
Referenced by getLastDowngrade(), and setLastDowngrade().
|
private |
Definition at line 68 of file XrdSource.h.
Referenced by PrettyID(), and setXrootdSite().
|
private |
Definition at line 73 of file XrdSource.h.
Referenced by getQuality(), and handle().
|
private |
Definition at line 69 of file XrdSource.h.
Referenced by setXrootdSite(), Site(), and ~Source().
|
private |
Definition at line 74 of file XrdSource.h.
Referenced by handle().