60 map<string, string> attrs;
66 if (!contentValue.empty()) {
76 cmdName +
": we did find the required aggregation location specified in the attribute="
81 string childContentValue;
82 map<string, string> childAttrs;
88 if (!childAttrs.empty()) {
112 strm <<
BESIndent::LMarg <<
"NCMLCacheAggXMLCommand::dump - (" << (
void *)
this <<
")" << endl;
130 BESDEBUG(
"ncml",
"NCMLCacheAggResponseHandler::NCMLCacheAggResponseHandler() called..." << endl);
145 BESDEBUG(
"ncml",
"We got a cacheAgg request for the aggregation location = " << loc << endl);
static xmlNode * GetFirstChild(xmlNode *node, string &child_name, string &child_value, map< string, string > &child_props)
get the first element child node for the given node
NCMLCacheAggXMLCommand(const BESDataHandlerInterface &baseDHI)
virtual void parse_request(xmlNode *pNode)
Parse the XML request document begining at the given node.
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
BESDataHandlerInterface _dhi
virtual ~NCMLCacheAggResponseHandler()
An abstract superclass for NCMLArray that handles the non-parameterized functionality and allows u...
static BESXMLCommand * makeInstance(const BESDataHandlerInterface &baseDHI)
virtual bool has_response()
Has a response handler been created given the request document?
static const std::string CACHE_AGG_RESPONSE
Response name in the DHI for the cache of aggregations command.
static const std::string CACHE_AGG_LOCATION_DATA_KEY
Key in the dhi.data[] map where the location is stored.
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
handler object that knows how to create a specific response object
#define THROW_NCML_PARSE_ERROR(parseLine, msg)
static ostream & LMarg(ostream &strm)
static const std::string CACHE_AGG_LOCATION_XML_ATTR
Name of the attribute in the cacheAgg XML command where the filename to do the caching on is located...
NCMLCacheAggResponseHandler(const string &name)
Structure storing information used by the BES to handle the request.
map< string, string > data
the map of string data that will be required for the current request.
virtual void execute(BESDataHandlerInterface &dhi)
knows how to build a requested response object
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
static const std::string NCML_NAME
The name used to specify an ncml file.
string action
the response object requested, e.g.
virtual ~NCMLCacheAggXMLCommand()
static BESResponseHandler * makeInstance(const string &name)
virtual void dump(ostream &strm) const
dumps information about this object
virtual void dump(ostream &strm) const
dumps information about this object
virtual void transmit(BESTransmitter *pTransmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object ...
virtual void prep_request()
Prepare any information needed to execute the request of this command.
virtual void dump(ostream &strm) const
dumps information about this object