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

Added the RetrievalFileTransfer and TapeFileLocation classes

parent 13b077dd
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ set (MIDDLE_TIER_LIB_SRC_FILES
cta/MiddleTierAdmin.cpp
cta/MiddleTierUser.cpp
cta/Mount.cpp
cta/RetrievalFileTransfer.cpp
cta/RetrievalJob.cpp
cta/RetrievalJobQueues.cpp
cta/RetrievalJobState.cpp
......@@ -45,6 +46,7 @@ set (MIDDLE_TIER_LIB_SRC_FILES
cta/StorageClass.cpp
cta/Tape.cpp
cta/TapeException.cpp
cta/TapeFileLocation.cpp
cta/TapePool.cpp
cta/UserIdentity.cpp
cta/UserRequest.cpp
......
#include "cta/RetrievalFileTransfer.hpp"
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::RetrievalFileTransfer::RetrievalFileTransfer() {
}
//------------------------------------------------------------------------------
// destructor
//------------------------------------------------------------------------------
cta::RetrievalFileTransfer::~RetrievalFileTransfer() throw() {
}
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::RetrievalFileTransfer::RetrievalFileTransfer(
const TapeFileLocation &tapeFile, const std::string &remoteFile):
m_tapeFile(tapeFile),
m_remoteFile(remoteFile) {
}
//------------------------------------------------------------------------------
// getTapeFile
//------------------------------------------------------------------------------
const cta::TapeFileLocation &cta::RetrievalFileTransfer::getTapeFile() const
throw() {
return m_tapeFile;
}
//------------------------------------------------------------------------------
// getRemoteFile
//------------------------------------------------------------------------------
const std::string &cta::RetrievalFileTransfer::getRemoteFile() const throw() {
return m_remoteFile;
}
#include "cta/TapeFileLocation.hpp"
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::TapeFileLocation::TapeFileLocation():
m_fseq(0),
m_blockId(0) {
}
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::TapeFileLocation::TapeFileLocation(const std::string &vid,
const uint64_t fseq, const uint64_t blockId):
m_vid(vid),
m_fseq(0),
m_blockId(0) {
}
//------------------------------------------------------------------------------
// getVid
//------------------------------------------------------------------------------
const std::string &cta::TapeFileLocation::getVid() const throw() {
return m_vid;
}
//------------------------------------------------------------------------------
// getFseq
//------------------------------------------------------------------------------
uint64_t cta::TapeFileLocation::getFseq() const throw() {
return m_fseq;
}
//------------------------------------------------------------------------------
// getBlockId
//------------------------------------------------------------------------------
uint64_t cta::TapeFileLocation::getBlockId() const throw() {
return m_blockId;
}
......@@ -38,14 +38,14 @@ public:
*
* @return The sequence number of the file.
*/
uint64_t &getFseq() const throw();
uint64_t getFseq() const throw();
/**
* Returns the block identifier of the file.
*
* @return The block identifier of the file.
*/
uint64_t &getBlockId() const throw();
uint64_t getBlockId() const throw();
private:
......@@ -66,4 +66,4 @@ private:
}; // class TapeFileLocation
}; // namepsace cta
} // namepsace cta
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