Commit 19c6d6c3 authored by Steven Murray's avatar Steven Murray
Browse files

Removed the unused class common/archiveRoutes/ArchiveRoute

parent 3cd49aa9
......@@ -68,7 +68,6 @@ set (COMMON_LIB_SRC_FILES
dataStructures/VerifyInfo.cpp
dataStructures/WriteTestResult.cpp
dataStructures/utils.cpp
archiveRoutes/ArchiveRoute.cpp
checksum/Checksum.cpp
exception/AcceptConnectionInterrupted.cpp
exception/AcsQueryVolumeCmd.cpp
......
/*
* The CERN Tape Archive (CTA) project
* Copyright (C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "common/archiveRoutes/ArchiveRoute.hpp"
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::common::archiveRoute::ArchiveRoute::ArchiveRoute():
copyNb(0) {
}
//------------------------------------------------------------------------------
// destructor
//------------------------------------------------------------------------------
cta::common::archiveRoute::ArchiveRoute::~ArchiveRoute() throw() {
}
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::common::archiveRoute::ArchiveRoute::ArchiveRoute(
const std::string &storageClassName,
const uint16_t copyNb,
const std::string &tapePoolName,
const CreationLog &creationLog):
storageClassName(storageClassName),
copyNb(copyNb),
tapePoolName(tapePoolName),
creationLog(creationLog) {
}
/*
* The CERN Tape Archive (CTA) project
* Copyright (C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "common/UserIdentity.hpp"
#include "common/CreationLog.hpp"
#include <stdint.h>
#include <string>
#include <time.h>
namespace cta { namespace common { namespace archiveRoute {
/**
* An archive route.
*/
struct ArchiveRoute {
/**
* Constructor.
*/
ArchiveRoute();
/**
* Destructor.
*/
~ArchiveRoute() throw();
/**
* Constructor.
*
* @param storageClassName The name of the storage class that identifies the
* source disk files.
* @param copyNb The tape copy number. Copy numbers start from 1.
* @param tapePoolName The name of the destination tape pool.
* @param creationLog The who, where, when an why of this modification.
* time is used.
*/
ArchiveRoute(
const std::string &storageClassName,
const uint16_t copyNb,
const std::string &tapePoolName,
const CreationLog &creationLog);
/**
* The name of the storage class that identifies the source disk files.
*/
std::string storageClassName;
/**
* The tape copy number.
*/
uint32_t copyNb;
/**
* The name of the destination tape pool.
*/
std::string tapePoolName;
/**
* The record of the entry's creation
*/
CreationLog creationLog;
}; // class ArchiveRoute
}}} // namespace cta::common::archiveRoute
\ No newline at end of file
......@@ -25,7 +25,6 @@
//#include "objectstore/RetrieveRequest.hpp"
#include "objectstore/Helpers.hpp"
#include "common/exception/Exception.hpp"
#include "common/archiveRoutes/ArchiveRoute.hpp"
#include "common/utils/utils.hpp"
#include "scheduler/LogicalLibrary.hpp"
#include "common/dataStructures/MountPolicy.hpp"
......
......@@ -18,7 +18,6 @@
#pragma once
#include "common/archiveRoutes/ArchiveRoute.hpp"
#include "common/dataStructures/RetrieveFileQueueCriteria.hpp"
#include "common/dataStructures/DriveState.hpp"
#include "common/MountControl.hpp"
......@@ -49,11 +48,6 @@
namespace cta {
// Forward declarations for opaque references.
namespace common {
namespace archiveRoute {
class ArchiveRoute;
} // cta::common::archiveRoute
} // cta::common
class ArchiveRequest;
class LogicalLibrary;
class RetrieveRequestDump;
......
......@@ -19,7 +19,6 @@
#include "objectstore/BackendRadosTestSwitch.hpp"
#include "tests/TestsCompileTimeSwitches.hpp"
#include "common/UserIdentity.hpp"
#include "common/archiveRoutes/ArchiveRoute.hpp"
#include "scheduler/SchedulerDatabase.hpp"
#include "scheduler/SchedulerDatabaseFactory.hpp"
#include "common/dataStructures/SecurityIdentity.hpp"
......
......@@ -18,7 +18,6 @@
#include "catalogue/InMemoryCatalogue.hpp"
#include "catalogue/SchemaCreatingSqliteCatalogue.hpp"
#include "common/archiveRoutes/ArchiveRoute.hpp"
#include "common/log/DummyLogger.hpp"
#include "common/make_unique.hpp"
#include "scheduler/ArchiveMount.hpp"
......
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