39 #include <BESRequestHandlerList.h> 40 #include <BESResponseHandlerList.h> 41 #include <BESResponseNames.h> 43 #include <BESContainerStorageList.h> 44 #include <BESFileContainerStorage.h> 45 #include <BESCatalogDirectory.h> 46 #include <BESCatalogList.h> 47 #include <BESDapService.h> 54 #include "CmrModule.h" 55 #include "CmrCatalog.h" 56 #include "CmrContainerStorage.h" 58 #define prolog std::string("CmrModule::").append(__func__).append("() - ") 60 void CmrModule::initialize(
const string &modname)
63 BESDEBUG(MODULE, prolog <<
"Initializing CMR Module: " << modname << endl);
68 if (!BESContainerStorageList::TheList()->ref_persistence(CMR_CATALOG_NAME)) {
76 BESDEBUG(MODULE,
"Done Initializing CMR Handler: " << modname << endl);
79 void CmrModule::terminate(
const string &modname)
81 BESDEBUG(MODULE, prolog <<
"Cleaning CMR Module: " << modname << endl);
90 BESDEBUG(MODULE, prolog <<
"Done Cleaning CMR Module: " << modname << endl);
102 strm << BESIndent::LMarg << prolog <<
"(" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
virtual void dump(ostream &strm) const
dump the contents of this object to the specified ostream
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.
builds catalogs from a directory structure
implementation of BESContainerStorageVolatile that represents a list of remote requests
static BESCatalogList * TheCatalogList()
Get the singleton BESCatalogList instance.