24#include <BESRequestHandlerList.h>
27#include <BESDapService.h>
28#include <BESResponseNames.h>
29#include <BESContainerStorageList.h>
30#include <BESFileContainerStorage.h>
31#include <BESCatalogDirectory.h>
32#include <BESCatalogList.h>
34#include "DmrppModule.h"
35#include "DmrppRequestHandler.h"
39#define DAP_CATALOG "catalog"
41#define prolog string("DmrppModule::").append(__func__).append("() - ")
45void DmrppModule::initialize(
const string &modname)
49 BESDEBUG(modname, prolog <<
"Initializing DMR++ Reader Module " << modname << endl);
51 BESRequestHandlerList::TheList()->
add_handler(modname,
new DmrppRequestHandler(modname));
59 if (!BESContainerStorageList::TheList()->ref_persistence(DAP_CATALOG)) {
64 BESDEBUG(modname, prolog <<
"Done Initializing DMR++ Reader Module " << modname << endl);
67void DmrppModule::terminate(
const string &modname)
69 BESDEBUG(modname, prolog <<
"Cleaning DMR++ Reader Module " << modname << endl);
78 BESDEBUG(modname, prolog <<
"Done Cleaning DMR++ Reader Module " << modname << endl);
84 return new DmrppModule;
90 strm << BESIndent::LMarg <<
"DmrppModule::dump - (" << (
void *)
this <<
")" << endl;
Catalogs from a directory structure.
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 handle_dap_service(const std::string &handler)
static function to register a handler to handle the dap services
static void Register(const std::string &flagName)
register the specified debug flag
implementation of BESContainerStorage that represents a data within a catalog repository
virtual bool add_handler(const std::string &handler_name, BESRequestHandler *handler)
add a request handler to the list of registered handlers for this server
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
Represents a specific data type request handler.
virtual void dump(std::ostream &strm) const
dump the contents of this object to the specified ostream