32#include <BESRequestHandlerList.h>
34#include <BESContainerStorageList.h>
36#include "NgapModule.h"
37#include "NgapRequestHandler.h"
38#include "NgapOwnedContainerStorage.h"
43void NgapModule::initialize(
const string &modname)
45 BESDEBUG(modname,
"Initializing NGAP Module " << modname << endl);
47 BESDEBUG(modname,
" adding " << modname <<
" request handler" << endl);
48 BESRequestHandlerList::TheList()->add_handler(modname,
new NgapRequestHandler(modname));
50 BESDEBUG(modname,
" adding OWNED " << modname <<
" container storage" << endl);
54 BESContainerStorageList::TheList()->add_persistence(
new NgapOwnedContainerStorage(modname));
56 BESDEBUG(modname,
" adding NGAP debug context" << endl);
59 BESDEBUG(modname,
"Done Initializing NGAP Module " << modname << endl);
62void NgapModule::terminate(
const string &modname)
64 BESDEBUG(modname,
"Cleaning NGAP module " << modname << endl);
66 BESDEBUG(modname,
" removing " << modname <<
" request handler" << endl);
67 BESRequestHandler *rh = BESRequestHandlerList::TheList()->remove_handler(modname);
70 BESContainerStorageList::TheList()->deref_persistence(modname);
72 BESDEBUG(modname,
"Done Cleaning NGAP module " << modname << endl);
77 strm << BESIndent::LMarg <<
"NgapModule::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