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

WIP

parent ea72f0b9
Branches
Tags
No related merge requests found
......@@ -58,6 +58,12 @@ void cta::CastorNameServer::createStorageClass(const SecurityIdentity &requester
cta::exception::Errnum::throwOnMinusOne(Cns_enterclass(const_cast<char *>(m_server.c_str()), &fc), __FUNCTION__);
}
//------------------------------------------------------------------------------
// createStorageClass
//------------------------------------------------------------------------------
void cta::CastorNameServer::createStorageClass(const SecurityIdentity &requester, const std::string &name, const uint16_t nbCopies, const uint64_t id) {
}
//------------------------------------------------------------------------------
// deleteStorageClass
//------------------------------------------------------------------------------
......
......@@ -77,6 +77,8 @@ public:
void createStorageClass(const SecurityIdentity &requester, const std::string &name, const uint16_t nbCopies);
void createStorageClass(const SecurityIdentity &requester, const std::string &name, const uint16_t nbCopies, const uint64_t id);
void deleteStorageClass(const SecurityIdentity &requester, const std::string &name);
void updateStorageClass(const SecurityIdentity &requester, const std::string &name, const uint16_t nbCopies);
......
......@@ -115,6 +115,14 @@ void cta::MockNameServer::createStorageClass(const SecurityIdentity &requester,
const std::string &name, const uint16_t nbCopies) {
throw exception::Exception(std::string(__FUNCTION__) + " not implemented");
}
//------------------------------------------------------------------------------
// createStorageClass
//------------------------------------------------------------------------------
void cta::MockNameServer::createStorageClass(const SecurityIdentity &requester,
const std::string &name, const uint16_t nbCopies, const uint64_t id) {
throw exception::Exception(std::string(__FUNCTION__) + " not implemented");
}
//------------------------------------------------------------------------------
// deleteStorageClass
......
......@@ -48,6 +48,8 @@ public:
void createStorageClass(const SecurityIdentity &requester, const std::string &name, const uint16_t nbCopies);
void createStorageClass(const SecurityIdentity &requester, const std::string &name, const uint16_t nbCopies, const uint64_t id);
void deleteStorageClass(const SecurityIdentity &requester, const std::string &name);
void updateStorageClass(const SecurityIdentity &requester, const std::string &name, const uint16_t nbCopies);
......
......@@ -105,13 +105,28 @@ public:
* @param name The name of the storage class.
* @param nbCopies The number of copies a file associated with this storage
* class should have on tape.
* @param comment The comment describing the storage class.
*/
virtual void createStorageClass(
const SecurityIdentity &requester,
const std::string &name,
const uint16_t nbCopies) = 0;
/**
* Creates the specified storage class with the specified numeric indentifier.
*
* @param requester The identity of the user requesting the creation of the
* storage class.
* @param name The name of the storage class.
* @param nbCopies The number of copies a file associated with this storage
* class should have on tape.
* @param id The numeric indentifier of the storage class.
*/
virtual void createStorageClass(
const SecurityIdentity &requester,
const std::string &name,
const uint16_t nbCopies,
const uint64_t id) = 0;
/**
* Deletes the specified storage class.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment