34#include <BESRequestHandlerList.h>
36#include <BESContainerStorageList.h>
38#include "BuildDmrppModule.h"
39#include "BuildDmrppRequestHandler.h"
40#include "NgapBuildDmrppContainerStorage.h"
43using namespace builddmrpp;
45void BuildDmrppModule::initialize(
const string &modname)
47 BESDEBUG(modname,
"Initializing BuildDmrpp Module " << modname << endl);
49 BESRequestHandlerList::TheList()->add_handler(modname,
new BuildDmrppRequestHandler(modname));
51 BESContainerStorageList::TheList()->add_persistence(
new NgapBuildDmrppContainerStorage(modname));
55 BESDEBUG(modname,
"Done Initializing BuildDmrpp Module " << modname << endl);
58void BuildDmrppModule::terminate(
const string &modname)
60 BESDEBUG(modname,
"Cleaning BuildDmrpp module " << modname << endl);
62 BESRequestHandler *rh = BESRequestHandlerList::TheList()->remove_handler(modname);
65 BESContainerStorageList::TheList()->deref_persistence(modname);
67 BESDEBUG(modname,
"Done Cleaning BuildDmrpp module " << modname << endl);
72 strm << BESIndent::LMarg <<
"BuildDmrppModule::dump - (" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
void dump(std::ostream &strm) const override
dump the contents of this object to the specified ostream