Go to the documentation of this file. 1 #ifndef Utilities_XrdAdaptor_XrdSource_h
2 #define Utilities_XrdAdaptor_XrdSource_h
4 #include "XrdCl/XrdClXRootDResponses.hh"
10 #include <boost/utility.hpp>
22 class XrdSiteStatistics;
23 class XrdStatisticsService;
25 class Source :
public std::enable_shared_from_this<Source>, boost::noncopyable {
31 void handle(std::shared_ptr<ClientRequest>);
33 void handle(RequestList &);
std::shared_ptr< XrdSiteStatistics const > stats() const
static void determineHostExcludeString(XrdCl::File &file, const XrdCl::HostList *hostList, std::string &exclude)
edm::propagate_const< std::unique_ptr< QualityMetricSource > > m_qm
const std::string & Site() const
std::shared_ptr< XrdCl::File const > fh() const
struct timespec getLastDowngrade() const
edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_stats
void handle(std::shared_ptr< ClientRequest >)
void setLastDowngrade(struct timespec now)
edm::propagate_const< std::shared_ptr< XrdCl::File > > m_fh
static bool getDomain(const std::string &host, std::string &domain)
struct timespec m_lastDowngrade
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
static bool isDCachePool(XrdCl::File &file, const XrdCl::HostList *hostList=nullptr)
static bool getXrootdSiteFromURL(std::string url, std::string &site)
std::shared_ptr< XrdSiteStatistics > & stats()
const std::string & ExcludeID() const
static bool getXrootdSite(XrdCl::File &file, std::string &site)
const std::string & PrettyID() const
std::shared_ptr< XrdCl::File > getFileHandle()
Source(timespec now, std::unique_ptr< XrdCl::File > fileHandle, const std::string &exclude)
std::shared_ptr< XrdCl::File > & fh()
const std::string & ID() const
static bool getHostname(const std::string &id, std::string &hostname)