Commit 02aeaa41 authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Removed the listongoingarchives and listongoingretrieves commands and updated the documentation

parent 0cd59003
......@@ -231,13 +231,11 @@ This command is used to manage the storage classes. These can be associated with
\normalfont
\subsection{\tt cta list\ldots}
This set of commands is used to list the ongoing archives and retrieves as well the pending ones. The last command lists the state of each tape drive (its status --up or down--, its contents, etc.).
This set of commands is used to list the pending archives and retrieves as well as the state of each tape drive (its status --up or down--, its contents, etc.).
\tt
\begin{center}
\begin{tabular}{ l l }
\rowcolor[gray]{0.9}{\normalfont\it Command} & {\normalfont\it Parameters} \\ \hline
cta loa/listongoingarchives & -{}-tapepool/-t <\textit{tapepool\_name}> \\ \hline
cta lor/listongoingretrieves & -{}-vid/-v <\textit{vid}> \\ \hline
\rowcolor[gray]{0.9}{\normalfont\it Command} & {\normalfont\it Parameters} \\ \hline
cta lpa/listpendingarchives & -{}-tapepool/-t <\textit{tapepool\_name}> \\ \hline
cta lpr/listpendingretrieves & -{}-vid/-v <\textit{vid}> \\ \hline
cta lds/listdrivestates & \\ \hline
......
......@@ -98,8 +98,6 @@ void XrdProFile::dispatchCommand(const std::vector<std::string> &tokens, const c
else if("ll" == command || "logicallibrary" == command) {xCom_logicallibrary(tokens, requester);}
else if("ta" == command || "tape" == command) {xCom_tape(tokens, requester);}
else if("sc" == command || "storageclass" == command) {xCom_storageclass(tokens, requester);}
else if("loa" == command || "listongoingarchives" == command) {xCom_listongoingarchives(tokens, requester);}
else if("lor" == command || "listongoingretrieves" == command) {xCom_listongoingretrieves(tokens, requester);}
else if("lpa" == command || "listpendingarchives" == command) {xCom_listpendingarchives(tokens, requester);}
else if("lpr" == command || "listpendingretrieves" == command) {xCom_listpendingretrieves(tokens, requester);}
else if("lds" == command || "listdrivestates" == command) {xCom_listdrivestates(tokens, requester);}
......@@ -928,11 +926,11 @@ void XrdProFile::xCom_storageclass(const std::vector<std::string> &tokens, const
}
//------------------------------------------------------------------------------
// xCom_listongoingarchives
// xCom_listpendingarchives
//------------------------------------------------------------------------------
void XrdProFile::xCom_listongoingarchives(const std::vector<std::string> &tokens, const cta::SecurityIdentity &requester) {
void XrdProFile::xCom_listpendingarchives(const std::vector<std::string> &tokens, const cta::SecurityIdentity &requester) {
std::stringstream help;
help << tokens[0] << " loa/listongoingarchives --tapepool/-t <tapepool_name>" << std::endl;
help << tokens[0] << " lpa/listpendingarchives --tapepool/-t <tapepool_name>" << std::endl;
std::string tapePool = getOptionValue(tokens, "-t", "--tapepool");
std::ostringstream responseSS;
if(tapePool.empty()) {
......@@ -971,11 +969,11 @@ void XrdProFile::xCom_listongoingarchives(const std::vector<std::string> &tokens
}
//------------------------------------------------------------------------------
// xCom_listongoingretrieves
// xCom_listpendingretrieves
//------------------------------------------------------------------------------
void XrdProFile::xCom_listongoingretrieves(const std::vector<std::string> &tokens, const cta::SecurityIdentity &requester) {
void XrdProFile::xCom_listpendingretrieves(const std::vector<std::string> &tokens, const cta::SecurityIdentity &requester) {
std::stringstream help;
help << tokens[0] << " lor/listongoingretrieves --vid/-v <vid>" << std::endl;
help << tokens[0] << " lpr/listpendingretrieves --vid/-v <vid>" << std::endl;
std::string tapeVid = getOptionValue(tokens, "-v", "--vid");
std::ostringstream responseSS;
if(tapeVid.empty()) {
......@@ -1019,24 +1017,6 @@ void XrdProFile::xCom_listongoingretrieves(const std::vector<std::string> &token
m_data = responseSS.str();
}
//------------------------------------------------------------------------------
// xCom_listpendingarchives
//------------------------------------------------------------------------------
void XrdProFile::xCom_listpendingarchives(const std::vector<std::string> &tokens, const cta::SecurityIdentity &requester) {
std::stringstream help;
help << tokens[0] << " lpa/listpendingarchives --tapepool/-t <tapepool_name>" << std::endl;
m_data = "Not implemented yet!\n";
}
//------------------------------------------------------------------------------
// xCom_listpendingretrieves
//------------------------------------------------------------------------------
void XrdProFile::xCom_listpendingretrieves(const std::vector<std::string> &tokens, const cta::SecurityIdentity &requester) {
std::stringstream help;
help << tokens[0] << " lpr/listpendingretrieves --vid/-v <vid>" << std::endl;
m_data = "Not implemented yet!\n";
}
//------------------------------------------------------------------------------
// xCom_listdrivestates
//------------------------------------------------------------------------------
......@@ -1244,8 +1224,6 @@ std::string XrdProFile::getGenericHelp(const std::string &programName) const {
help << programName << " ll/logicallibrary add/rm/ls/ch" << std::endl;
help << programName << " ta/tape add/rm/ls/ch/reclaim" << std::endl;
help << programName << " sc/storageclass add/rm/ls/ch" << std::endl;
help << programName << " loa/listongoingarchives" << std::endl;
help << programName << " lor/listongoingretrieves" << std::endl;
help << programName << " lpa/listpendingarchives" << std::endl;
help << programName << " lpr/listpendingretrieves" << std::endl;
help << programName << " lds/listdrivestates" << std::endl;
......
......@@ -166,20 +166,6 @@ protected:
*
* @param tokens The command line tokens
*/
void xCom_listongoingarchives(const std::vector<std::string> &tokens, const cta::SecurityIdentity &requester);
/**
* Executes the listongoingretrieves command
*
* @param tokens The command line tokens
*/
void xCom_listongoingretrieves(const std::vector<std::string> &tokens, const cta::SecurityIdentity &requester);
/**
* Executes the listpendingarchives command
*
* @param tokens The command line tokens
*/
void xCom_listpendingarchives(const std::vector<std::string> &tokens, const cta::SecurityIdentity &requester);
/**
......
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