27#include "BESContainerStorageList.h"
30#include "BESDataNames.h"
31#include "BESXMLUtils.h"
33#include "BESSyntaxUserError.h"
36#include "ShowNodeCommand.h"
75 map<string, string> props;
77 if (name != NODE_RESPONSE_STR) {
78 string err =
"The specified command " + name +
" is not a showNode command";
83 d_xmlcmd_dhi.action = NODE_RESPONSE;
88 d_xmlcmd_dhi.data[CONTAINER] = props[
"node"];
90 if (!d_xmlcmd_dhi.data[CONTAINER].empty()) {
91 d_cmd_log_info.append(
" for ").append(d_xmlcmd_dhi.data[CONTAINER]);
98 if (!d_xmlcmd_dhi.data[CATALOG].empty()) {
99 d_cmd_log_info.append(
" in catalog ").append(d_xmlcmd_dhi.data[CATALOG]);
116 strm << BESIndent::LMarg <<
"ShowNodeCommand::dump - (" << (
void *)
this <<
")" << endl;
119 BESIndent::UnIndent();
132 return new ShowNodeCommand(base_dhi);
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.
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
virtual void parse_request(xmlNode *node)
Parse a show node command.
virtual void dump(std::ostream &strm) const
dumps information about this object
static BESXMLCommand * CommandBuilder(const BESDataHandlerInterface &base_dhi)
A command builder suitable for BESXMLCommand::add_command()