42#include <BESRequestHandlerList.h>
43#include <BESResponseHandlerList.h>
44#include <BESResponseNames.h>
46#include <BESContainerStorageList.h>
47#include <BESFileContainerStorage.h>
48#include <BESCatalogDirectory.h>
49#include <BESCatalogList.h>
50#include <BESDapService.h>
58#include "CmrCatalog.h"
59#include "CmrContainerStorage.h"
61#define prolog std::string("CmrModule::").append(__func__).append("() - ")
63void CmrModule::initialize(
const string &modname)
66 BESDEBUG(MODULE, prolog <<
"Initializing CMR Module: " << modname << endl);
71 if (!BESContainerStorageList::TheList()->ref_persistence(CMR_CATALOG_NAME)) {
79 BESDEBUG(MODULE,
"Done Initializing CMR Handler: " << modname << endl);
82void CmrModule::terminate(
const string &modname)
84 BESDEBUG(MODULE, prolog <<
"Cleaning CMR Module: " << modname << endl);
93 BESDEBUG(MODULE, prolog <<
"Done Cleaning CMR Module: " << modname << endl);
105 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