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

Added the first version of the specification of the...

Added the first version of the specification of the Catalogue::getTapeFilesForRepack() method - there's no implementation yet
parent ad509724
......@@ -492,6 +492,20 @@ public:
virtual ArchiveFileItor getArchiveFiles(
const TapeFileSearchCriteria &searchCriteria = TapeFileSearchCriteria()) const = 0;
/**
* Returns the specified tape files in file sequence order.
*
* @param vid The volume identifier of the tape.
* @param startFSeq The file sequence number of the first file. Please note
* that there might not be a file with this exact file sequence number.
* @param maxNbFiles The maximum number of files to be returned.
* @return The tape files.
*/
virtual std::list<common::dataStructures::TapeFile> getTapeFilesForRepack(
const std::string &vid,
const uint64_t startFSeq,
const uint64_t maxNbFiles) const = 0;
/**
* Returns a summary of the tape files that meet the specified search
* criteria.
......
......@@ -341,6 +341,10 @@ public:
return retryOnLostConnection(m_log, [&]{return m_catalogue->getArchiveFiles(searchCriteria);}, m_maxTriesToConnect);
}
std::list<common::dataStructures::TapeFile> getTapeFilesForRepack(const std::string &vid, const uint64_t startFSeq, const uint64_t maxNbFiles) const override {
return retryOnLostConnection(m_log, [&]{return m_catalogue->getTapeFilesForRepack(vid, startFSeq, maxNbFiles);}, m_maxTriesToConnect);
}
common::dataStructures::ArchiveFileSummary getTapeFileSummary(const TapeFileSearchCriteria &searchCriteria = TapeFileSearchCriteria()) const override {
return retryOnLostConnection(m_log, [&]{return m_catalogue->getTapeFileSummary(searchCriteria);}, m_maxTriesToConnect);
}
......
......@@ -57,6 +57,7 @@ public:
std::list<common::dataStructures::AdminUser> getAdminUsers() const { throw exception::Exception(std::string("In ")+__PRETTY_FUNCTION__+": not implemented"); }
common::dataStructures::ArchiveFile getArchiveFileById(const uint64_t id) override { throw exception::Exception(std::string("In ")+__PRETTY_FUNCTION__+": not implemented"); }
ArchiveFileItor getArchiveFiles(const TapeFileSearchCriteria& searchCriteria) const { throw exception::Exception(std::string("In ")+__PRETTY_FUNCTION__+": not implemented"); }
std::list<common::dataStructures::TapeFile> getTapeFilesForRepack(const std::string &vid, const uint64_t startFSeq, const uint64_t maxNbFiles) const override { throw exception::Exception(std::string("In ")+__PRETTY_FUNCTION__+": not implemented"); }
std::list<common::dataStructures::ArchiveRoute> getArchiveRoutes() const { throw exception::Exception(std::string("In ")+__PRETTY_FUNCTION__+": not implemented"); }
std::list<common::dataStructures::LogicalLibrary> getLogicalLibraries() const { throw exception::Exception(std::string("In ")+__PRETTY_FUNCTION__+": not implemented"); }
std::list<common::dataStructures::MountPolicy> getMountPolicies() const { throw exception::Exception(std::string("In ")+__PRETTY_FUNCTION__+": not implemented"); }
......
......@@ -4021,6 +4021,16 @@ ArchiveFileItor RdbmsCatalogue::getArchiveFiles(const TapeFileSearchCriteria &se
}
}
//------------------------------------------------------------------------------
// getTapeFilesForRepack
//------------------------------------------------------------------------------
std::list<common::dataStructures::TapeFile> RdbmsCatalogue::getTapeFilesForRepack(
const std::string &vid,
const uint64_t startFSeq,
const uint64_t maxNbFiles) const {
return std::list<common::dataStructures::TapeFile>();
}
//------------------------------------------------------------------------------
// getTapeFileSummary
//------------------------------------------------------------------------------
......
......@@ -495,6 +495,20 @@ public:
*/
ArchiveFileItor getArchiveFiles(const TapeFileSearchCriteria &searchCriteria) const override;
/**
* Returns the specified tape files in file sequence order.
*
* @param vid The volume identifier of the tape.
* @param startFSeq The file sequence number of the first file. Please note
* that there might not be a file with this exact file sequence number.
* @param maxNbFiles The maximum number of files to be returned.
* @return The tape files.
*/
std::list<common::dataStructures::TapeFile> getTapeFilesForRepack(
const std::string &vid,
const uint64_t startFSeq,
const uint64_t maxNbFiles) const override;
/**
* Returns a summary of the tape files that meet the specified search
* criteria.
......
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