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 {
32 void handle(std::shared_ptr<ClientRequest>);
34 void handle(RequestList &);
36 std::shared_ptr<XrdCl::File> getFileHandle();
45 struct timespec getLastDowngrade() const {
return m_lastDowngrade;}
53 static void determineHostExcludeString(
XrdCl::File &file,
const XrdCl::HostList *hostList,
std::string &exclude);
58 static bool isDCachePool(
XrdCl::File &file,
const XrdCl::HostList *hostList=
nullptr);
65 void requestCallback();
74 struct timespec m_lastDowngrade;
edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_stats
void setLastDowngrade(struct timespec now)
const std::string & PrettyID() const
std::shared_ptr< XrdSiteStatistics const > stats() const
edm::propagate_const< std::shared_ptr< XrdCl::File > > m_fh
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
std::shared_ptr< XrdCl::File const > fh() const
const std::string & Site() const
edm::propagate_const< std::unique_ptr< QualityMetricSource > > m_qm
const std::string & ExcludeID() const
std::shared_ptr< XrdCl::File > & fh()
const std::string & ID() const
std::shared_ptr< XrdSiteStatistics > & stats()