41 #include <BESRequestHandlerList.h>
42 #include <BESResponseHandlerList.h>
43 #include <BESResponseNames.h>
45 #include <BESContainerStorageList.h>
46 #include <BESFileContainerStorage.h>
47 #include <BESCatalogDirectory.h>
48 #include <BESCatalogList.h>
49 #include <BESDapService.h>
56 #include "CmrModule.h"
57 #include "CmrCatalog.h"
58 #include "CmrContainerStorage.h"
60 #define prolog std::string("CmrModule::").append(__func__).append("() - ")
62 void CmrModule::initialize(
const string &modname)
65 BESDEBUG(MODULE, prolog <<
"Initializing CMR Module: " << modname << endl);
70 if (!BESContainerStorageList::TheList()->ref_persistence(CMR_CATALOG_NAME)) {
78 BESDEBUG(MODULE,
"Done Initializing CMR Handler: " << modname << endl);
81 void CmrModule::terminate(
const string &modname)
83 BESDEBUG(MODULE, prolog <<
"Cleaning CMR Module: " << modname << endl);
92 BESDEBUG(MODULE, prolog <<
"Done Cleaning CMR Module: " << modname << endl);
104 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
virtual void dump(std::ostream &strm) const
dump the contents of this object to the specified ostream
builds catalogs from a directory structure
implementation of BESContainerStorageVolatile that represents a list of remote requests