bes
Updated for version 3.20.5
|
33 #include "BESXMLDeleteContainerCommand.h"
34 #include "BESContainerStorageList.h"
35 #include "BESDataNames.h"
36 #include "BESResponseNames.h"
37 #include "BESXMLUtils.h"
39 #include "BESSyntaxUserError.h"
57 map<string, string> props;
59 if (name != DELETE_CONTAINER_STR) {
60 string err =
"The specified command " + name +
" is not a delete container command";
64 string container_name = props[
"name"];
65 if (container_name.empty()) {
66 string err = name +
" command: Must specify the container to delete";
69 d_xmlcmd_dhi.
data[CONTAINER_NAME] = container_name;
72 string storage = props[
"space"];
73 d_xmlcmd_dhi.
data[STORE_NAME] = storage;
74 if (d_xmlcmd_dhi.
data[STORE_NAME].empty()) {
75 d_xmlcmd_dhi.
data[STORE_NAME] = CATALOG ;
79 d_xmlcmd_dhi.
action = DELETE_CONTAINER;
81 d_cmd_log_info = (string)
"delete container " + container_name +
" from " + storage +
";";
96 strm << BESIndent::LMarg <<
"BESXMLDeleteContainerCommand::dump - (" << (
void *)
this <<
")" << endl;
99 BESIndent::UnIndent();
static void GetNodeInfo(xmlNode *node, string &name, string &value, map< string, string > &props)
get the name, value if any, and any properties for the specified node
virtual void parse_request(xmlNode *node)
parse a show command. No properties or children elements
std::string d_cmd_log_info
Used only for the log.
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
virtual void dump(ostream &strm) const
dumps information about this object
error thrown if there is a user syntax error in the request or any other user error
virtual void dump(ostream &strm) const
dumps information about this object
Base class for the BES's commands.
string action
the response object requested, e.g. das, dds
map< string, string > data
the map of string data that will be required for the current request.
Structure storing information used by the BES to handle the request.