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

Added more name server related methods to the Scheduler class

parent 837284d1
No related branches found
No related tags found
No related merge requests found
......@@ -350,6 +350,53 @@ std::list<cta::Tape> cta::Scheduler::getTapes(
return m_db.getTapes(requester);
}
//------------------------------------------------------------------------------
// createDir
//------------------------------------------------------------------------------
void cta::Scheduler::createDir(
const SecurityIdentity &requester,
const std::string &path,
const uint16_t mode) {
m_ns.createDir(requester, path, mode);
}
//------------------------------------------------------------------------------
// deleteDir
//------------------------------------------------------------------------------
void cta::Scheduler::deleteDir(
const SecurityIdentity &requester,
const std::string &path) {
m_ns.deleteDir(requester, path);
}
//------------------------------------------------------------------------------
// getVidOfFile
//------------------------------------------------------------------------------
std::string cta::Scheduler::getVidOfFile(
const SecurityIdentity &requester,
const std::string &path,
const uint16_t copyNb) const {
return m_ns.getVidOfFile(requester, path, copyNb);
}
//------------------------------------------------------------------------------
// getDirContents
//------------------------------------------------------------------------------
cta::DirIterator cta::Scheduler::getDirContents(
const SecurityIdentity &requester,
const std::string &path) const {
return m_ns.getDirContents(requester, path);
}
//------------------------------------------------------------------------------
// statDirEntry
//------------------------------------------------------------------------------
cta::DirEntry cta::Scheduler::statDirEntry(
const SecurityIdentity &requester,
const std::string &path) const {
return m_ns.statDirEntry(requester, path);
}
//------------------------------------------------------------------------------
// setDirStorageClass
//------------------------------------------------------------------------------
......
......@@ -414,6 +414,66 @@ public:
std::list<Tape> getTapes(
const SecurityIdentity &requester) const;
/**
* Creates the specified directory.
*
* @param requester The identity of the requester.
* @param path The absolute path of the directory.
* @param mode The mode bits of the directory entry.
*/
void createDir(
const SecurityIdentity &requester,
const std::string &path,
const uint16_t mode);
/**
* Deletes the specified directory.
*
* @param requester The identity of the requester.
* @param path The absolute path of the directory.
*/
void deleteDir(
const SecurityIdentity &requester,
const std::string &path);
/**
* Returns the volume identifier of the tape on which the specified tape copy
* has been archived.
*
* @param requester The identity of the requester.
* @param path The absolute path of the file.
* @param copyNb The copy number of the file.
*/
std::string getVidOfFile(
const SecurityIdentity &requester,
const std::string &path,
const uint16_t copyNb) const;
/**
* Gets the contents of the specified directory.
*
* @param requester The identity of the requester.
* @param path The absolute path of the directory.
* @return An iterator over the contents of the directory.
*/
DirIterator getDirContents(
const SecurityIdentity &requester,
const std::string &path) const;
/**
* Returns the directory entry information for the specified directory or file
* within the archive namespace.
*
* @param requester The identity of the requester.
* @param path The absolute path of the directory or file within the archive
* namespace.
* @return The directory entry information for the specified directory or file
* within the archive namespace.
*/
DirEntry statDirEntry(
const SecurityIdentity &requester,
const std::string &path) const;
/**
* Sets the storage class of the specified directory to the specified value.
*
......
This diff is collapsed.
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