27 #include "DapModule.h" 28 #include "DapRequestHandler.h" 30 #include <BESRequestHandlerList.h> 33 #include <BESDapService.h> 34 #include <BESResponseNames.h> 35 #include <BESContainerStorageList.h> 36 #include <BESContainerStorageCatalog.h> 37 #include <BESCatalogDirectory.h> 38 #include <BESCatalogList.h> 40 #define DAP_CATALOG "catalog" 42 void DapModule::initialize(
const string &modname)
44 BESDEBUG(modname,
"Initializing Dap Reader Module " << modname << endl);
54 if (!BESContainerStorageList::TheList()->ref_persistence(DAP_CATALOG)) {
61 BESDEBUG(modname,
"Done Initializing Dap Reader Module " << modname << endl);
64 void DapModule::terminate(
const string &modname)
66 BESDEBUG(modname,
"Cleaning Dap Reader Module " << modname << endl);
77 BESDEBUG(modname,
"Done Cleaning Dap Reader Module " << modname << endl);
89 strm << BESIndent::LMarg <<
"DapModule::dump - (" << (
void *)
this <<
")" << endl;
virtual bool add_handler(const string &handler_name, BESRequestHandler *handler)
add a request handler to the list of registered handlers for this server
virtual bool add_catalog(BESCatalog *catalog)
adds the speciifed catalog to the list
virtual bool add_persistence(BESContainerStorage *p)
Add a persistent store to the list.
implementation of BESContainerStorage that represents a data within a catalog repository ...
virtual bool deref_catalog(const string &catalog_name)
de-reference the specified catalog and remove from list if no longer referenced
builds catalogs from a directory structure
virtual void dump(ostream &strm) const
dump the contents of this object to the specified ostream
virtual bool deref_persistence(const string &persist_name)
dereference a persistent store in the list.
Represents a specific data type request handler.
static BESCatalogList * TheCatalogList()
returns the singleton BESCatalogList instance. The pthreads library insures that only one instance ca...
static void Register(const string &flagName)
register the specified debug flag
static void handle_dap_service(const string &handler)
static function to register a handler to handle the dap services
virtual BESRequestHandler * remove_handler(const string &handler_name)
remove and return the specified request handler