bes
Updated for version 3.20.5
|
27 #include "BESContainerStorageList.h"
30 #include "BESDataNames.h"
31 #include "BESXMLUtils.h"
33 #include "BESSyntaxUserError.h"
36 #include "ShowNodeCommand.h"
66 void ShowNodeCommand::parse_request(xmlNode *node)
70 map<string, string> props;
72 if (name != NODE_RESPONSE_STR) {
73 string err =
"The specified command " + name +
" is not a showNode command";
78 d_xmlcmd_dhi.
action = NODE_RESPONSE;
83 d_xmlcmd_dhi.
data[CONTAINER] = props[
"node"];
85 if (!d_xmlcmd_dhi.
data[CONTAINER].empty()) {
93 if (!d_xmlcmd_dhi.
data[CATALOG].empty()) {
111 strm << BESIndent::LMarg <<
"ShowNodeCommand::dump - (" << (
void *)
this <<
")" << endl;
114 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
std::string d_cmd_log_info
Used only for the log.
virtual void dump(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.
static BESXMLCommand * CommandBuilder(const BESDataHandlerInterface &base_dhi)
A command builder suitable for BESXMLCommand::add_command()
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
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.