35#include "BESXMLDeleteContainerCommand.h"
36#include "BESContainerStorageList.h"
37#include "BESDataNames.h"
38#include "BESResponseNames.h"
39#include "BESXMLUtils.h"
41#include "BESSyntaxUserError.h"
64 map<string, string> props;
66 if (name != DELETE_CONTAINER_STR) {
67 string err =
"The specified command " + name +
" is not a delete container command";
71 string container_name = props[
"name"];
72 if (container_name.empty()) {
73 string err = name +
" command: Must specify the container to delete";
76 d_xmlcmd_dhi.data[CONTAINER_NAME] = container_name;
79 string storage = props[
"space"];
80 d_xmlcmd_dhi.data[STORE_NAME] = storage;
81 if (d_xmlcmd_dhi.data[STORE_NAME].empty()) {
82 d_xmlcmd_dhi.data[STORE_NAME] = CATALOG ;
86 d_xmlcmd_dhi.action = DELETE_CONTAINER;
88 d_cmd_log_info = (string)
"delete container " + container_name +
" from " + storage +
";";
103 strm << BESIndent::LMarg <<
"BESXMLDeleteContainerCommand::dump - (" << (
void *)
this <<
")" << endl;
106 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
error thrown if there is a user syntax error in the request or any other user error
Base class for the BES's commands.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
std::string d_cmd_log_info
Used only for the log.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void parse_request(xmlNode *node)
parse a show command. No properties or children elements
static void GetNodeInfo(xmlNode *node, std::string &name, std::string &value, std::map< std::string, std::string > &props)
get the name, value if any, and any properties for the specified node