Commit e2f33384 authored by Steven Murray's avatar Steven Murray
Browse files

Removed unused class common/TapePool

parent 6b410dd9
......@@ -139,7 +139,6 @@ set (COMMON_LIB_SRC_FILES
Configuration.cpp
ConfigurationFile.cpp
SourcedParameter.cpp
TapePool.cpp
Timer.cpp
UserIdentity.cpp
VO.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/TapePool.hpp"
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::TapePool::TapePool():
nbPartialTapes(0) {
}
//------------------------------------------------------------------------------
// destructor
//------------------------------------------------------------------------------
cta::TapePool::~TapePool() throw() {
}
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::TapePool::TapePool(
const std::string &name,
const uint32_t nbPartialTapes,
const CreationLog &creationLog):
name(name),
nbPartialTapes(nbPartialTapes),
creationLog(creationLog) {}
//------------------------------------------------------------------------------
// operator<
//------------------------------------------------------------------------------
bool cta::TapePool::operator<(const TapePool &rhs) const throw() {
return name < rhs.name;
}
/*
* 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/CreationLog.hpp"
#include "common/MountControl.hpp"
#include <string>
namespace cta {
/**
* A tape pool.
*/
struct TapePool {
/**
* Constructor.
*/
TapePool();
/**
* Destructor.
*/
~TapePool() throw();
/**
* Constructor.
*
* @param name The name of the tape pool.
* @param nbPartialTapes The maximum number of tapes that can be partially
* full at any moment in time.
* @param creationLog The who, where, when an why of this modification.
* time is used.
*/
TapePool(
const std::string &name,
const uint32_t nbPartialTapes,
const CreationLog &creationLog);
/**
* Less than operator.
*
* @param rhs The right-hand side of the operator.
*/
bool operator<(const TapePool &rhs) const throw();
/**
* The name of the tape pool.
*/
std::string name;
/**
* The maximum number of tapes that can be partially full at any moment in
* time.
*/
uint32_t nbPartialTapes;
/**
* The record of the entry's creation
*/
CreationLog creationLog;
}; // class TapePool
} // namespace cta
......@@ -29,7 +29,6 @@
#include "common/archiveRoutes/ArchiveRoute.hpp"
#include "common/utils/utils.hpp"
#include "scheduler/LogicalLibrary.hpp"
#include "common/TapePool.hpp"
#include "common/dataStructures/MountPolicy.hpp"
#include "common/make_unique.hpp"
#include "tapeserver/castor/tape/tapeserver/daemon/TapeSessionStats.hpp"
......
......@@ -20,7 +20,6 @@
#include "scheduler/SchedulerDatabaseFactory.hpp"
#include "scheduler/OStoreDB/OStoreDB.hpp"
#include "common/TapePool.hpp"
#include "common/dataStructures/SecurityIdentity.hpp"
#include "scheduler/LogicalLibrary.hpp"
#include "scheduler/RetrieveRequestDump.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