30 #include <BESRequestHandlerList.h>
31 #include <BESResponseHandlerList.h>
32 #include <BESResponseNames.h>
34 #include <BESContainerStorageList.h>
35 #include <BESFileContainerStorage.h>
36 #include <BESCatalogDirectory.h>
37 #include <BESCatalogList.h>
38 #include <BESDapService.h>
43 #include "HttpdCatalogNames.h"
44 #include "HttpdCatalogModule.h"
45 #include "HttpdCatalogContainerStorage.h"
46 #include "HttpdCatalog.h"
50 #define prolog string("HttpdCatalogModule::").append(__func__).append("() - ")
52 namespace httpd_catalog {
54 void HttpdCatalogModule::initialize(
const string &modname)
58 BESDEBUG(MODULE, prolog <<
"Initializing Module: " << modname << endl);
64 if (!BESContainerStorageList::TheList()->ref_persistence(HTTPD_CATALOG_NAME)) {
65 BESContainerStorageList::TheList()->
add_persistence(
new HttpdCatalogContainerStorage(HTTPD_CATALOG_NAME));
68 BESDEBUG(MODULE,
"Done Initializing Handler: " << modname << endl);
71 void HttpdCatalogModule::terminate(
const string &modname)
73 BESDEBUG(MODULE, prolog <<
"Cleaning Module: " << modname << endl);
79 BESDEBUG(MODULE, prolog <<
"Done Cleaning Module: " << modname << endl);
85 return new HttpdCatalogModule;
89 void HttpdCatalogModule::dump(ostream &strm)
const
91 strm << BESIndent::LMarg << prolog<<
"(" << (
void *)
this <<
")" << endl;
virtual bool add_catalog(BESCatalog *catalog)
adds the specified catalog to the list
static BESCatalogList * TheCatalogList()
Get the singleton BESCatalogList instance.
virtual bool add_persistence(BESContainerStorage *p)
Add a persistent store to the list.
virtual bool deref_persistence(const std::string &persist_name)
dereference a persistent store in the list.
static void Register(const std::string &flagName)
register the specified debug flag