Skip to content
Snippets Groups Projects
Commit 06f3d8b6 authored by Steven Murray's avatar Steven Murray
Browse files

Renamed static library ctadisk to ctaeos

parent 96896a08
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ ELSE(DEFINED PackageOnly)
add_subdirectory(catalogue)
add_subdirectory(cmdline)
add_subdirectory(common)
add_subdirectory(disk)
add_subdirectory(eos)
add_subdirectory(mediachanger)
add_subdirectory(objectstore)
add_subdirectory(rdbms)
......
......@@ -19,7 +19,7 @@ cmake_minimum_required (VERSION 2.6)
find_package (xrootdclient REQUIRED)
include_directories (${XROOTD_INCLUDE_DIR} ${CMAKE_SOURCE_DIR})
add_library (ctadisk
add_library (ctaeos
DiskReporter.cpp
DiskReporterFactory.cpp
EOSReporter.cpp)
File moved
......@@ -18,7 +18,7 @@
#pragma once
namespace cta { namespace disk {
namespace cta { namespace eos {
class DiskReporter {
public:
......
......@@ -22,7 +22,7 @@
#include "common/exception/Exception.hpp"
#include "common/threading/MutexLocker.hpp"
namespace cta { namespace disk {
namespace cta { namespace eos {
DiskReporter* DiskReporterFactory::createDiskReporter(const std::string URL) {
threading::MutexLocker ml(m_mutex);
......
......@@ -24,7 +24,7 @@
#include <string>
namespace cta { namespace disk {
namespace cta { namespace eos {
class DiskReporterFactory {
public:
......
......@@ -19,7 +19,7 @@
#include "EOSReporter.hpp"
#include "common/exception/XrootCl.hpp"
namespace cta { namespace disk {
namespace cta { namespace eos {
EOSReporter::EOSReporter(const std::string& hostURL, const std::string& queryValue):
m_fs(hostURL), m_query(queryValue) {}
......
......@@ -21,7 +21,7 @@
#include "DiskReporter.hpp"
#include <XrdCl/XrdClFileSystem.hh>
namespace cta { namespace disk {
namespace cta { namespace eos {
class EOSReporter: public DiskReporter {
public:
......
......@@ -20,7 +20,7 @@
#include "DiskReporter.hpp"
namespace cta { namespace disk {
namespace cta { namespace eos {
class NullReporter: public DiskReporter {
public:
......
......@@ -18,7 +18,7 @@
#include "scheduler/ArchiveJob.hpp"
#include "scheduler/ArchiveMount.hpp"
#include "disk/DiskReporterFactory.hpp"
#include "eos/DiskReporterFactory.hpp"
#include <limits>
//------------------------------------------------------------------------------
......@@ -89,7 +89,7 @@ bool cta::ArchiveJob::complete() {
// We can now record the success for the job in the database.
// If this is the last job of the request, we also report the success to the client.
if (m_dbJob->succeed()) {
std::unique_ptr<disk::DiskReporter> reporter(m_mount.createDiskReporter(m_dbJob->archiveReportURL));
std::unique_ptr<eos::DiskReporter> reporter(m_mount.createDiskReporter(m_dbJob->archiveReportURL));
reporter->reportArchiveFullyComplete();
return true;
}
......
......@@ -77,7 +77,7 @@ uint32_t cta::ArchiveMount::getNbFiles() const {
//------------------------------------------------------------------------------
// createDiskReporter
//------------------------------------------------------------------------------
cta::disk::DiskReporter* cta::ArchiveMount::createDiskReporter(std::string& URL) {
cta::eos::DiskReporter* cta::ArchiveMount::createDiskReporter(std::string& URL) {
return m_reporterFactory.createDiskReporter(URL);
}
......
......@@ -23,7 +23,7 @@
#include "scheduler/SchedulerDatabase.hpp"
#include "scheduler/TapeMount.hpp"
#include "catalogue/Catalogue.hpp"
#include "disk/DiskReporterFactory.hpp"
#include "eos/DiskReporterFactory.hpp"
#include <memory>
#include <atomic>
......@@ -131,7 +131,7 @@ namespace cta {
* @param URL: report address
* @return poitner to the reporter created.
*/
disk::DiskReporter * createDiskReporter(std::string & URL);
eos::DiskReporter * createDiskReporter(std::string & URL);
/**
* Destructor.
......@@ -157,7 +157,7 @@ namespace cta {
private:
/** An initialized-once factory for archive reports (indirectly used by ArchiveJobs) */
disk::DiskReporterFactory m_reporterFactory;
eos::DiskReporterFactory m_reporterFactory;
}; // class ArchiveMount
} // namespace cta
......@@ -25,7 +25,7 @@ add_library (ctascheduler SHARED
${CTA_SCHEDULER_SRC_FILES})
install (TARGETS ctascheduler DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
target_link_libraries (ctascheduler ctacommon ctaobjectstore protobuf ctautils ctadisk)
target_link_libraries (ctascheduler ctacommon ctaobjectstore protobuf ctautils ctaeos)
#add_library (ctaschedulerutils SHARED
# _old_prototype_DummyScheduler.cpp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment