1 #ifndef Utilities_XrdAdaptor_XrdRequest_h
2 #define Utilities_XrdAdaptor_XrdRequest_h
7 #include <boost/utility.hpp>
8 #include <XrdCl/XrdClXRootDResponses.hh>
14 namespace XrdAdaptor {
20 class XrdReadStatistics;
22 class ClientRequest : boost::noncopyable,
public XrdCl::ResponseHandler {
87 std::shared_ptr<std::vector<IOPosBuffer> >
m_iolist;
90 std::shared_ptr<XrdReadStatistics>
m_stats;
ClientRequest(RequestManager &manager, void *into, IOSize size, IOOffset off)
std::future< IOSize > get_future()
std::shared_ptr< Source > getCurrentSource() const
std::shared_ptr< ClientRequest > m_self_reference
RequestManager & m_manager
void setStatistics(std::shared_ptr< XrdReadStatistics > stats)
std::shared_ptr< std::vector< IOPosBuffer > > m_iolist
std::shared_ptr< Source > m_source
ClientRequest(RequestManager &manager, std::shared_ptr< std::vector< IOPosBuffer > > iolist, IOSize size=0)
std::shared_ptr< XrdReadStatistics > m_stats
std::promise< IOSize > m_promise
tuple size
Write out results.
virtual void HandleResponse(XrdCl::XRootDStatus *status, XrdCl::AnyObject *response) override