Commit f2629518 authored by Eric Cano's avatar Eric Cano
Browse files

Removed unused methods.

Fixed lack of override specifier
parent dd4a9e6e
......@@ -22,7 +22,6 @@ namespace cta { namespace eos {
class DiskReporter {
public:
virtual void reportArchiveFullyComplete() = 0;
virtual void asyncReportArchiveFullyComplete() = 0;
virtual ~DiskReporter() {};
};
......
......@@ -26,18 +26,6 @@ namespace cta { namespace eos {
EOSReporter::EOSReporter(const std::string& hostURL, const std::string& queryValue, std::promise<void>& reporterState):
m_fs(hostURL), m_query(queryValue), m_reporterState(reporterState) {}
void EOSReporter::reportArchiveFullyComplete() {
auto qcOpaque = XrdCl::QueryCode::OpaqueFile;
XrdCl::Buffer arg (m_query.size());
arg.FromString(m_query);
XrdCl::Buffer * resp = nullptr;
XrdCl::XRootDStatus status=m_fs.Query(qcOpaque, arg, resp, CTA_EOS_QUERY_TIMEOUT);
delete (resp);
cta::exception::XrootCl::throwOnError(status,
"In EOSReporter::reportArchiveFullyComplete(): failed to XrdCl::FileSystem::Query()");
}
void EOSReporter::asyncReportArchiveFullyComplete() {
auto qcOpaque = XrdCl::QueryCode::OpaqueFile;
XrdCl::Buffer arg (m_query.size());
......
......@@ -29,14 +29,13 @@ const uint16_t CTA_EOS_QUERY_TIMEOUT = 15; // Timeout in seconds that is rounded
class EOSReporter: public DiskReporter, public XrdCl::ResponseHandler {
public:
EOSReporter(const std::string & hostURL, const std::string & queryValue, std::promise<void> &reporterState);
void reportArchiveFullyComplete() override;
void asyncReportArchiveFullyComplete() override;
private:
XrdCl::FileSystem m_fs;
std::string m_query;
std::promise<void> &m_reporterState;
virtual void HandleResponse(XrdCl::XRootDStatus *status,
XrdCl::AnyObject *response);
void HandleResponse(XrdCl::XRootDStatus *status,
XrdCl::AnyObject *response) override;
};
}} // namespace cta::disk
......@@ -25,7 +25,6 @@ namespace cta { namespace eos {
class NullReporter: public DiskReporter {
public:
NullReporter() {};
void reportArchiveFullyComplete() override {};
void asyncReportArchiveFullyComplete() override {};
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment