bes
Updated for version 3.20.6
|
41 #include "BESRequestHandlerList.h"
44 #include "BESResponseHandlerList.h"
45 #include "BESResponseNames.h"
46 #include "BESXMLCommand.h"
48 #include "SampleModule.h"
49 #include "SampleRequestHandler.h"
50 #include "SampleResponseNames.h"
51 #include "SampleSayResponseHandler.h"
52 #include "SampleSayXMLCommand.h"
54 void SampleModule::initialize(
const string &modname)
56 BESDEBUG(modname,
"Initializing Sample Module " << modname << endl);
60 BESResponseHandlerList::TheList()->
add_handler(SAY_RESPONSE, SampleSayResponseHandler::SampleSayResponseBuilder);
66 BESDEBUG(modname,
"Done Initializing Sample Module " << modname << endl);
69 void SampleModule::terminate(
const string &modname)
71 BESDEBUG(modname,
"Cleaning Sample module " << modname << endl);
80 BESDEBUG(modname,
"Done Cleaning Sample module " << modname << endl);
92 strm << BESIndent::LMarg <<
"SampleModule::dump - (" << (
void *)
this <<
")" << endl;
Represents a specific data type request handler.
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
static void add_command(const std::string &cmd_str, p_xmlcmd_builder cmd)
Add a command to the possible commands allowed by this BES.
virtual bool remove_handler(const std::string &handler)
removes a response handler from the list
virtual bool add_handler(const std::string &handler_name, BESRequestHandler *handler)
add a request handler to the list of registered handlers for this server
static void Register(const std::string &flagName)
register the specified debug flag
static void del_command(const std::string &cmd_str)
Deletes the command called cmd_str from the list of possible commands.
virtual void dump(std::ostream &strm) const
dump the contents of this object to the specified ostream
virtual bool add_handler(const std::string &handler, p_response_handler handler_method)
add a response handler to the list