Commit 55c52f87 authored by Steven Murray's avatar Steven Murray
Browse files

Renamed Catalogue::getArchiveFileSummary() to getTapeFileSummary

parent de380aef
......@@ -485,13 +485,13 @@ public:
const uint64_t nbArchiveFilesToPrefetch = 1000) const = 0;
/**
* Returns a summary of the archive files that meet the specified search
* Returns a summary of the tape files that meet the specified search
* criteria.
*
* @param searchCriteria The search criteria.
* @return The summary.
*/
virtual common::dataStructures::ArchiveFileSummary getArchiveFileSummary(
virtual common::dataStructures::ArchiveFileSummary getTapeFileSummary(
const ArchiveFileSearchCriteria &searchCriteria = ArchiveFileSearchCriteria()) const = 0;
/**
......
......@@ -3619,9 +3619,9 @@ std::list<common::dataStructures::ArchiveFile> RdbmsCatalogue::getArchiveFilesFo
}
//------------------------------------------------------------------------------
// getArchiveFileSummary
// getTapeFileSummary
//------------------------------------------------------------------------------
common::dataStructures::ArchiveFileSummary RdbmsCatalogue::getArchiveFileSummary(
common::dataStructures::ArchiveFileSummary RdbmsCatalogue::getTapeFileSummary(
const ArchiveFileSearchCriteria &searchCriteria) const {
throw exception::Exception(std::string(__FUNCTION__) + " not implemented");
}
......
......@@ -471,13 +471,13 @@ public:
const uint64_t nbArchiveFilesToPrefetch) const override;
/**
* Returns a summary of the archive files that meet the specified search
* Returns a summary of the tape files that meet the specified search
* criteria.
*
* @param searchCriteria The search criteria.
* @return The summary.
*/
common::dataStructures::ArchiveFileSummary getArchiveFileSummary(
common::dataStructures::ArchiveFileSummary getTapeFileSummary(
const ArchiveFileSearchCriteria &searchCriteria) const override;
/**
......
......@@ -1736,7 +1736,7 @@ void XrdCtaFile::xCom_archivefile() {
}
}
else { //summary
cta::common::dataStructures::ArchiveFileSummary summary=m_catalogue->getArchiveFileSummary(searchCriteria);
cta::common::dataStructures::ArchiveFileSummary summary=m_catalogue->getTapeFileSummary(searchCriteria);
std::vector<std::vector<std::string>> responseTable;
std::vector<std::string> header = {"total number of files","total size"};
std::vector<std::string> row = {std::to_string((unsigned long long)summary.totalFiles),std::to_string((unsigned long long)summary.totalBytes)};
......
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