bes
Updated for version 3.20.6
|
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"
43 void DmrppModule::initialize(
const string &modname)
47 BESDEBUG(modname,
"Initializing DMR++ Reader Module " << modname << endl);
49 BESRequestHandlerList::TheList()->
add_handler(modname,
new DmrppRequestHandler(modname));
57 if (!BESContainerStorageList::TheList()->ref_persistence(DAP_CATALOG)) {
62 BESDEBUG(modname,
"Done Initializing DMR++ Reader Module " << modname << endl);
65 void DmrppModule::terminate(
const string &modname)
67 BESDEBUG(modname,
"Cleaning DMR++ Reader Module " << modname << endl);
76 BESDEBUG(modname,
"Done Cleaning DMR++ Reader Module " << modname << endl);
82 return new DmrppModule;
86 void DmrppModule::dump(ostream &strm)
const
88 strm << BESIndent::LMarg <<
"DmrppModule::dump - (" << (
void *)
this <<
")" << endl;
Represents a specific data type request handler.
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
virtual bool deref_persistence(const std::string &persist_name)
dereference a persistent store in the list.
Catalogs from a directory structure.
virtual bool add_persistence(BESContainerStorage *p)
Add a persistent store to the list.
static BESCatalogList * TheCatalogList()
Get the singleton BESCatalogList instance.
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
static void Register(const std::string &flagName)
register the specified debug flag
virtual bool add_catalog(BESCatalog *catalog)
adds the specified catalog to the list
static void handle_dap_service(const std::string &handler)
static function to register a handler to handle the dap services