Commit d232a1ac authored by Daniele Kruse's avatar Daniele Kruse
Browse files

finished work on Frontend, still untested though

parent 5816927b
......@@ -162,11 +162,11 @@ public:
virtual void modifyDedicationUntil(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &drivename, const uint64_t untilTimestamp) = 0;
virtual void modifyDedicationComment(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &drivename, const std::string &comment) = 0;
virtual std::list<cta::common::dataStructures::ArchiveFile> getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
virtual std::list<cta::common::dataStructures::ArchiveFile> getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path) = 0;
virtual cta::common::dataStructures::ArchiveFileSummary getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
virtual cta::common::dataStructures::ArchiveFileSummary getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path) = 0;
virtual cta::common::dataStructures::ArchiveFile getArchiveFileById(const std::string &id) = 0;
virtual cta::common::dataStructures::ArchiveFile getArchiveFileById(const uint64_t id) = 0;
virtual void setDriveStatus(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &driveName, const bool up, const bool force) = 0;
......
......@@ -374,7 +374,7 @@ void cta::catalogue::DummyCatalogue::modifyDedicationComment(const cta::common::
//------------------------------------------------------------------------------
// getArchiveFiles
//------------------------------------------------------------------------------
std::list<cta::common::dataStructures::ArchiveFile> cta::catalogue::DummyCatalogue::getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
std::list<cta::common::dataStructures::ArchiveFile> cta::catalogue::DummyCatalogue::getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path) {
return std::list<cta::common::dataStructures::ArchiveFile>();
}
......@@ -382,7 +382,7 @@ std::list<cta::common::dataStructures::ArchiveFile> cta::catalogue::DummyCatalog
//------------------------------------------------------------------------------
// getArchiveFileSummary
//------------------------------------------------------------------------------
cta::common::dataStructures::ArchiveFileSummary cta::catalogue::DummyCatalogue::getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
cta::common::dataStructures::ArchiveFileSummary cta::catalogue::DummyCatalogue::getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path) {
return cta::common::dataStructures::ArchiveFileSummary();
}
......@@ -390,7 +390,7 @@ cta::common::dataStructures::ArchiveFileSummary cta::catalogue::DummyCatalogue::
//------------------------------------------------------------------------------
// getArchiveFileById
//------------------------------------------------------------------------------
cta::common::dataStructures::ArchiveFile cta::catalogue::DummyCatalogue::getArchiveFileById(const std::string &id){
cta::common::dataStructures::ArchiveFile cta::catalogue::DummyCatalogue::getArchiveFileById(const uint64_t id){
return cta::common::dataStructures::ArchiveFile();
}
......
......@@ -119,11 +119,11 @@ public:
virtual void modifyDedicationUntil(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &drivename, const uint64_t untilTimestamp);
virtual void modifyDedicationComment(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &drivename, const std::string &comment);
virtual std::list<cta::common::dataStructures::ArchiveFile> getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
virtual std::list<cta::common::dataStructures::ArchiveFile> getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path);
virtual cta::common::dataStructures::ArchiveFileSummary getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
virtual cta::common::dataStructures::ArchiveFileSummary getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path);
virtual cta::common::dataStructures::ArchiveFile getArchiveFileById(const std::string &id);
virtual cta::common::dataStructures::ArchiveFile getArchiveFileById(const uint64_t id);
virtual void setDriveStatus(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &driveName, const bool up, const bool force);
/**
......
......@@ -7,10 +7,4 @@ include_directories (${XROOTD_INCLUDE_DIR} ${XROOTD_PRIVATE_INCLUDE_DIR} ${CMAKE
add_executable (cta CTACmdMain.cpp CTACmd.cpp)
target_link_libraries (cta ${XROOTD_XRDCL_LIB} ctacommon cryptopp ctautils)
include_directories (${CMAKE_SOURCE_DIR}/tapeserver/)
add_executable (ctaAddAdminUser CTAAddAdminUser.cpp )
target_link_libraries (ctaAddAdminUser ctacommon castorlog
ctautils protobuf ctascheduler ctanameserver)
install (TARGETS cta ctaAddAdminUser DESTINATION usr/bin)
include_directories (${CMAKE_SOURCE_DIR}/tapeserver/)
\ No newline at end of file
/*
* 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 "objectstore/BackendFactory.hpp"
#include "objectstore/BackendVFS.hpp"
#include "tapeserver/castor/common/CastorConfiguration.hpp"
#include "tapeserver/castor/log/DummyLogger.hpp"
#include "scheduler/OStoreDB/OStoreDB.hpp"
#include "common/SecurityIdentity.hpp"
#include <exception>
#include <iostream>
#include <unistd.h>
#include <sys/types.h>
int main(int argc, char ** argv) {
try{
if (argc != 3)
throw std::runtime_error("In ctaAddAdminUser: expected 2 arguments (uid, gid)");
uid_t uid = atol(argv[1]);
gid_t gid = atol(argv[2]);
castor::common::CastorConfiguration &castorConf =
castor::common::CastorConfiguration::getConfig();
castor::log::DummyLogger log("ctaAddAdminUser");
std::unique_ptr<cta::objectstore::Backend> be(
cta::objectstore::BackendFactory::createBackend(
castorConf.getConfEntString("TapeServer", "ObjectStoreBackendPath", &log)).release());
// If the backend is a VFS, make sure we don't delete it on exit.
// If not, nevermind.
try {
dynamic_cast<cta::objectstore::BackendVFS &>(*be).noDeleteOnExit();
} catch (std::bad_cast &){}
cta::OStoreDB db(*be);
db.createAdminUser(cta::SecurityIdentity(cta::UserIdentity(getuid(), getgid()),
castor::utils::getHostName()),
cta::UserIdentity(uid, gid), "");
} catch (std::exception & e) {
std::cerr << "In ctaAddAdminUser: got an exception: " << e.what() << std::endl;
}
}
......@@ -48,7 +48,7 @@ bool cta::common::dataStructures::ArchiveJob::allFieldsSet() const {
//------------------------------------------------------------------------------
// setArchiveFileID
//------------------------------------------------------------------------------
void cta::common::dataStructures::ArchiveJob::setArchiveFileID(const std::string &archiveFileID) {
void cta::common::dataStructures::ArchiveJob::setArchiveFileID(const uint64_t archiveFileID) {
m_archiveFileID = archiveFileID;
m_archiveFileIDSet = true;
}
......@@ -56,7 +56,7 @@ void cta::common::dataStructures::ArchiveJob::setArchiveFileID(const std::string
//------------------------------------------------------------------------------
// getArchiveFileID
//------------------------------------------------------------------------------
std::string cta::common::dataStructures::ArchiveJob::getArchiveFileID() const {
uint64_t cta::common::dataStructures::ArchiveJob::getArchiveFileID() const {
if(!allFieldsSet()) {
throw cta::exception::Exception(std::string(__FUNCTION__)+" Error: not all fields of the ArchiveJob have been set!");
}
......
......@@ -43,8 +43,8 @@ public:
*/
~ArchiveJob() throw();
void setArchiveFileID(const std::string &archiveFileID);
std::string getArchiveFileID() const;
void setArchiveFileID(const uint64_t archiveFileID);
uint64_t getArchiveFileID() const;
void setCopyNumber(const uint64_t copyNumber);
uint64_t getCopyNumber() const;
......@@ -63,7 +63,7 @@ private:
*/
bool allFieldsSet() const;
std::string m_archiveFileID;
uint64_t m_archiveFileID;
bool m_archiveFileIDSet;
uint64_t m_copyNumber;
......
......@@ -48,7 +48,7 @@ bool cta::common::dataStructures::CancelRetrieveRequest::allFieldsSet() const {
//------------------------------------------------------------------------------
// setArchiveFileID
//------------------------------------------------------------------------------
void cta::common::dataStructures::CancelRetrieveRequest::setArchiveFileID(const std::string &archiveFileID) {
void cta::common::dataStructures::CancelRetrieveRequest::setArchiveFileID(const uint64_t archiveFileID) {
m_archiveFileID = archiveFileID;
m_archiveFileIDSet = true;
}
......@@ -56,7 +56,7 @@ void cta::common::dataStructures::CancelRetrieveRequest::setArchiveFileID(const
//------------------------------------------------------------------------------
// getArchiveFileID
//------------------------------------------------------------------------------
std::string cta::common::dataStructures::CancelRetrieveRequest::getArchiveFileID() const {
uint64_t cta::common::dataStructures::CancelRetrieveRequest::getArchiveFileID() const {
if(!allFieldsSet()) {
throw cta::exception::Exception(std::string(__FUNCTION__)+" Error: not all fields of the CancelRetrieveRequest have been set!");
}
......
......@@ -44,8 +44,8 @@ public:
*/
~CancelRetrieveRequest() throw();
void setArchiveFileID(const std::string &archiveFileID);
std::string getArchiveFileID() const;
void setArchiveFileID(const uint64_t archiveFileID);
uint64_t getArchiveFileID() const;
void setDrData(const cta::common::dataStructures::DRData &drData);
cta::common::dataStructures::DRData getDrData() const;
......@@ -64,7 +64,7 @@ private:
*/
bool allFieldsSet() const;
std::string m_archiveFileID;
uint64_t m_archiveFileID;
bool m_archiveFileIDSet;
cta::common::dataStructures::DRData m_drData;
......
......@@ -44,7 +44,7 @@ bool cta::common::dataStructures::DeleteArchiveRequest::allFieldsSet() const {
//------------------------------------------------------------------------------
// setArchiveFileID
//------------------------------------------------------------------------------
void cta::common::dataStructures::DeleteArchiveRequest::setArchiveFileID(const std::string &archiveFileID) {
void cta::common::dataStructures::DeleteArchiveRequest::setArchiveFileID(const uint64_t archiveFileID) {
m_archiveFileID = archiveFileID;
m_archiveFileIDSet = true;
}
......@@ -52,7 +52,7 @@ void cta::common::dataStructures::DeleteArchiveRequest::setArchiveFileID(const s
//------------------------------------------------------------------------------
// getArchiveFileID
//------------------------------------------------------------------------------
std::string cta::common::dataStructures::DeleteArchiveRequest::getArchiveFileID() const {
uint64_t cta::common::dataStructures::DeleteArchiveRequest::getArchiveFileID() const {
if(!allFieldsSet()) {
throw cta::exception::Exception(std::string(__FUNCTION__)+" Error: not all fields of the DeleteArchiveRequest have been set!");
}
......
......@@ -43,8 +43,8 @@ public:
*/
~DeleteArchiveRequest() throw();
void setArchiveFileID(const std::string &archiveFileID);
std::string getArchiveFileID() const;
void setArchiveFileID(const uint64_t archiveFileID);
uint64_t getArchiveFileID() const;
void setRequester(const cta::common::dataStructures::Requester &requester);
cta::common::dataStructures::Requester getRequester() const;
......@@ -57,7 +57,7 @@ private:
*/
bool allFieldsSet() const;
std::string m_archiveFileID;
uint64_t m_archiveFileID;
bool m_archiveFileIDSet;
cta::common::dataStructures::Requester m_requester;
......
......@@ -52,7 +52,7 @@ bool cta::common::dataStructures::RetrieveRequest::allFieldsSet() const {
//------------------------------------------------------------------------------
// setArchiveFileID
//------------------------------------------------------------------------------
void cta::common::dataStructures::RetrieveRequest::setArchiveFileID(const std::string &archiveFileID) {
void cta::common::dataStructures::RetrieveRequest::setArchiveFileID(const uint64_t archiveFileID) {
m_archiveFileID = archiveFileID;
m_archiveFileIDSet = true;
}
......@@ -60,7 +60,7 @@ void cta::common::dataStructures::RetrieveRequest::setArchiveFileID(const std::s
//------------------------------------------------------------------------------
// getArchiveFileID
//------------------------------------------------------------------------------
std::string cta::common::dataStructures::RetrieveRequest::getArchiveFileID() const {
uint64_t cta::common::dataStructures::RetrieveRequest::getArchiveFileID() const {
if(!allFieldsSet()) {
throw cta::exception::Exception(std::string(__FUNCTION__)+" Error: not all fields of the RetrieveRequest have been set!");
}
......
......@@ -44,8 +44,8 @@ public:
*/
~RetrieveRequest() throw();
void setArchiveFileID(const std::string &archiveFileID);
std::string getArchiveFileID() const;
void setArchiveFileID(const uint64_t archiveFileID);
uint64_t getArchiveFileID() const;
void setDiskpoolName(const std::string &diskpoolName);
std::string getDiskpoolName() const;
......@@ -70,7 +70,7 @@ private:
*/
bool allFieldsSet() const;
std::string m_archiveFileID;
uint64_t m_archiveFileID;
bool m_archiveFileIDSet;
std::string m_diskpoolName;
......
......@@ -48,7 +48,7 @@ bool cta::common::dataStructures::UpdateFileInfoRequest::allFieldsSet() const {
//------------------------------------------------------------------------------
// setArchiveFileID
//------------------------------------------------------------------------------
void cta::common::dataStructures::UpdateFileInfoRequest::setArchiveFileID(const std::string &archiveFileID) {
void cta::common::dataStructures::UpdateFileInfoRequest::setArchiveFileID(const uint64_t archiveFileID) {
m_archiveFileID = archiveFileID;
m_archiveFileIDSet = true;
}
......@@ -56,7 +56,7 @@ void cta::common::dataStructures::UpdateFileInfoRequest::setArchiveFileID(const
//------------------------------------------------------------------------------
// getArchiveFileID
//------------------------------------------------------------------------------
std::string cta::common::dataStructures::UpdateFileInfoRequest::getArchiveFileID() const {
uint64_t cta::common::dataStructures::UpdateFileInfoRequest::getArchiveFileID() const {
if(!allFieldsSet()) {
throw cta::exception::Exception(std::string(__FUNCTION__)+" Error: not all fields of the UpdateFileInfoRequest have been set!");
}
......
......@@ -44,8 +44,8 @@ public:
*/
~UpdateFileInfoRequest() throw();
void setArchiveFileID(const std::string &archiveFileID);
std::string getArchiveFileID() const;
void setArchiveFileID(const uint64_t archiveFileID);
uint64_t getArchiveFileID() const;
void setDrData(const cta::common::dataStructures::DRData &drData);
cta::common::dataStructures::DRData getDrData() const;
......@@ -64,7 +64,7 @@ private:
*/
bool allFieldsSet() const;
std::string m_archiveFileID;
uint64_t m_archiveFileID;
bool m_archiveFileIDSet;
cta::common::dataStructures::DRData m_drData;
......
......@@ -32,7 +32,7 @@ CTA_ArchiveFileID: string which is the unique ID of the CTA file to be kept by E
username: string (name of the requester of the action, used for SLAs and logging) not kept by CTA after successful operation
groupname: string (group of the requester of the action, used for SLAs and logging) not kept by CTA after successful operation
CTA_ArchiveFileID: string which is the unique ID of the CTA file
CTA_ArchiveFileID: uint64_t which is the unique ID of the CTA file
dst_URL: base64 encoded string of the form scheme://host:port/opaque_part (NOT kept by CTA after successful archival)
DR_instance: string kept by CTA for disaster recovery
DR_path: updated base64 encoded string kept by CTA for disaster recovery
......@@ -56,7 +56,7 @@ Note: DR info is piggybacked
username: string (name of the requester of the action, used for SLAs and logging) not kept by CTA after successful operation
groupname: string (group of the requester of the action, used for SLAs and logging) not kept by CTA after successful operation
CTA_ArchiveFileID: string which is the unique ID of the CTA file
CTA_ArchiveFileID: uint64_t which is the unique ID of the CTA file
Note: This command may be issued even before the actual archival process has begun
......@@ -68,7 +68,7 @@ Note: This command may be issued even before the actual archival process has beg
username: string (name of the requester of the action, used for SLAs and logging) not kept by CTA after successful operation
groupname: string (group of the requester of the action, used for SLAs and logging) not kept by CTA after successful operation
CTA_ArchiveFileID: string which is the unique ID of the CTA file
CTA_ArchiveFileID: uint64_t which is the unique ID of the CTA file
dst_URL: this is the same string provided in the EOS retrieval request
DR_instance: string kept by CTA for disaster recovery
DR_path: updated base64 encoded string kept by CTA for disaster recovery
......@@ -87,7 +87,7 @@ Note: DR info is piggybacked
username: string (name of the requester of the action, used for SLAs and logging) not kept by CTA after successful operation
groupname: string (group of the requester of the action, used for SLAs and logging) not kept by CTA after successful operation
CTA_ArchiveFileID: string which is the unique ID of the CTA file
CTA_ArchiveFileID: uint64_t which is the unique ID of the CTA file
storage_class: updated storage class which may or may not have a different routing
DR_instance: string kept by CTA for disaster recovery
DR_path: updated base64 encoded string kept by CTA for disaster recovery
......
......@@ -44,14 +44,14 @@ struct ArchiveRequest {
struct DeleteArchiveRequest {
struct Requester requester;
std::string archiveFileID;
uint64_t archiveFileID;
}; // struct DeleteArchiveRequest
struct RetrieveRequest {
struct Requester requester;
std::string archiveFileID;
uint64_t archiveFileID;
std::string dstURL;
struct DRData drData;
std::string diskpoolName;
......@@ -62,7 +62,7 @@ struct RetrieveRequest {
struct CancelRetrieveRequest {
struct Requester requester;
std::string archiveFileID;
uint64_t archiveFileID;
std::string dstURL;
struct DRData drData;
......@@ -71,7 +71,7 @@ struct CancelRetrieveRequest {
struct UpdateFileInfoRequest {
struct Requester requester;
std::string archiveFileID;
uint64_t archiveFileID;
std::string storageClass;
struct DRData drData;
......@@ -185,11 +185,11 @@ virtual void cancelVerify
virtual std::list<VerifyInfo> getVerifys (const SecurityIdentity &requester) const;
virtual VerifyInfo getVerify (const SecurityIdentity &requester, const std::string &vid) const;
virtual std::list<ArchiveFile> getArchiveFiles (const SecurityIdentity &requester, const std::string &id, const std::string &eosid, const std::string &copynb, const std::string &tapepool,
virtual std::list<ArchiveFile> getArchiveFiles (const SecurityIdentity &requester, const uint64_t id, const std::string &eosid, const std::string &copynb, const std::string &tapepool,
const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path);
virtual ArchiveFileSummary getArchiveFileSummary (const SecurityIdentity &requester, const std::string &id, const std::string &eosid, const std::string &copynb, const std::string &tapepool,
virtual ArchiveFileSummary getArchiveFileSummary (const SecurityIdentity &requester, const uint64_t id, const std::string &eosid, const std::string &copynb, const std::string &tapepool,
const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path);
virtual ArchiveFile getArchiveFileById (const std::string &id);
virtual ArchiveFile getArchiveFileById (const uint64_t id);
virtual ReadTestResult readTest (const SecurityIdentity &requester, const std::string &driveName, const std::string &vid, const uint64_t firstFSeq, const uint64_t lastFSeq,
const bool checkChecksum, const std::string &output, const std::string &tag) const; //when output=="null" discard the data read
......@@ -246,7 +246,7 @@ struct ArchiveJob {
struct ArchiveRequest request;
std::string tapePool;
std::string copyNumber;
std::string archiveFileID;
uint64_t archiveFileID;
}; // struct ArchiveJob (no tape chosen here)
......@@ -267,7 +267,7 @@ struct TapeFileLocation {
struct ArchiveFile {
std::string archiveFileID;
uint64_t archiveFileID;
std::string eosFileID;
uint64_t fileSize;
std::string checksumType;
......
......@@ -84,10 +84,10 @@ virtual void modifyDedicatio
virtual void modifyDedicationUntil (const SecurityIdentity &requester, const std::string &drivename, const uint64_t untilTimestamp);
virtual void modifyDedicationComment (const SecurityIdentity &requester, const std::string &drivename, const std::string &comment);
virtual std::list<ArchiveFile> getArchiveFiles (const SecurityIdentity &requester, const std::string &id, const std::string &eosid, const std::string &copynb, const std::string &tapepool,
virtual std::list<ArchiveFile> getArchiveFiles (const SecurityIdentity &requester, const uint64_t id, const std::string &eosid, const std::string &copynb, const std::string &tapepool,
const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path);
virtual ArchiveFileSummary getArchiveFileSummary (const SecurityIdentity &requester, const std::string &id, const std::string &eosid, const std::string &copynb, const std::string &tapepool,
virtual ArchiveFileSummary getArchiveFileSummary (const SecurityIdentity &requester, const uint64_t id, const std::string &eosid, const std::string &copynb, const std::string &tapepool,
const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path);
virtual ArchiveFile getArchiveFileById (const std::string &id);
virtual ArchiveFile getArchiveFileById (const uint64_t id);
virtual void setDriveStatus (const SecurityIdentity &requester, const std::string &driveName, const bool up, const bool force);
......@@ -644,7 +644,7 @@ cta::common::dataStructures::VerifyInfo cta::Scheduler::getVerify(const cta::com
//------------------------------------------------------------------------------
// getArchiveFiles
//------------------------------------------------------------------------------
std::list<cta::common::dataStructures::ArchiveFile> cta::Scheduler::getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
std::list<cta::common::dataStructures::ArchiveFile> cta::Scheduler::getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path) {
return std::list<cta::common::dataStructures::ArchiveFile>();
}
......@@ -652,7 +652,7 @@ std::list<cta::common::dataStructures::ArchiveFile> cta::Scheduler::getArchiveFi
//------------------------------------------------------------------------------
// getArchiveFileSummary
//------------------------------------------------------------------------------
cta::common::dataStructures::ArchiveFileSummary cta::Scheduler::getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
cta::common::dataStructures::ArchiveFileSummary cta::Scheduler::getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path) {
return cta::common::dataStructures::ArchiveFileSummary();
}
......@@ -660,7 +660,7 @@ cta::common::dataStructures::ArchiveFileSummary cta::Scheduler::getArchiveFileSu
//------------------------------------------------------------------------------
// getArchiveFileById
//------------------------------------------------------------------------------
cta::common::dataStructures::ArchiveFile cta::Scheduler::getArchiveFileById(const std::string &id){
cta::common::dataStructures::ArchiveFile cta::Scheduler::getArchiveFileById(const uint64_t id){
return cta::common::dataStructures::ArchiveFile();
}
......
......@@ -205,11 +205,11 @@ public:
virtual std::list<cta::common::dataStructures::VerifyInfo> getVerifys(const cta::common::dataStructures::SecurityIdentity &requester) const;
virtual cta::common::dataStructures::VerifyInfo getVerify(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &vid) const;
virtual std::list<cta::common::dataStructures::ArchiveFile> getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
virtual std::list<cta::common::dataStructures::ArchiveFile> getArchiveFiles(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path);
virtual cta::common::dataStructures::ArchiveFileSummary getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &id, const std::string &eosid,
virtual cta::common::dataStructures::ArchiveFileSummary getArchiveFileSummary(const cta::common::dataStructures::SecurityIdentity &requester, const uint64_t id, const std::string &eosid,
const std::string &copynb, const std::string &tapepool, const std::string &vid, const std::string &owner, const std::string &group, const std::string &storageclass, const std::string &path);
virtual cta::common::dataStructures::ArchiveFile getArchiveFileById(const std::string &id);
virtual cta::common::dataStructures::ArchiveFile getArchiveFileById(const uint64_t id);
virtual cta::common::dataStructures::ReadTestResult readTest(const cta::common::dataStructures::SecurityIdentity &requester, const std::string &driveName, const std::string &vid, const uint64_t firstFSeq, const uint64_t lastFSeq,
const bool checkChecksum, const std::string &output, const std::string &tag) const; //when output=="null" discard the data read
......
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