28 #include <BESRequestHandlerList.h> 29 #include <BESResponseHandlerList.h> 30 #include <BESResponseNames.h> 32 #include <BESContainerStorageList.h> 33 #include <BESFileContainerStorage.h> 34 #include <BESCatalogDirectory.h> 35 #include <BESCatalogList.h> 36 #include <BESDapService.h> 41 #include "HttpdCatalogNames.h" 42 #include "HttpdCatalogModule.h" 43 #include "HttpdCatalogContainerStorage.h" 44 #include "HttpdCatalog.h" 48 #define prolog string("HttpdCatalogModule::").append(__func__).append("() - ") 50 namespace httpd_catalog {
52 void HttpdCatalogModule::initialize(
const string &modname)
56 BESDEBUG(MODULE, prolog <<
"Initializing Module: " << modname << endl);
62 if (!BESContainerStorageList::TheList()->ref_persistence(HTTPD_CATALOG_NAME)) {
63 BESContainerStorageList::TheList()->
add_persistence(
new HttpdCatalogContainerStorage(HTTPD_CATALOG_NAME));
66 BESDEBUG(MODULE,
"Done Initializing Handler: " << modname << endl);
69 void HttpdCatalogModule::terminate(
const string &modname)
71 BESDEBUG(MODULE, prolog <<
"Cleaning Module: " << modname << endl);
77 BESDEBUG(MODULE, prolog <<
"Done Cleaning Module: " << modname << endl);
83 return new HttpdCatalogModule;
87 void HttpdCatalogModule::dump(ostream &strm)
const 89 strm << BESIndent::LMarg << prolog<<
"(" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
virtual bool deref_persistence(const std::string &persist_name)
dereference a persistent store in the list.
virtual bool add_catalog(BESCatalog *catalog)
adds the specified catalog to the list
virtual bool add_persistence(BESContainerStorage *p)
Add a persistent store to the list.
static BESCatalogList * TheCatalogList()
Get the singleton BESCatalogList instance.