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 <BESFileContainerStorage.h> 37 #include <BESCatalogDirectory.h> 38 #include <BESCatalogList.h> 40 #include "BESInternalError.h" 42 void DapModule::initialize(
const string &modname)
44 BESDEBUG(modname,
"Initializing Dap Reader Module " << modname << endl);
52 throw BESInternalError(
"Should never have to add the default catalog.", __FILE__, __LINE__);
56 if (!BESContainerStorageList::TheList()->ref_persistence(default_catalog_name)) {
63 BESDEBUG(modname,
"Done Initializing Dap Reader Module " << modname << endl);
66 void DapModule::terminate(
const string &modname)
68 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;
exception thrown if inernal error encountered
static void Register(const std::string &flagName)
register the specified debug flag
virtual bool deref_persistence(const std::string &persist_name)
dereference a persistent store in the list.
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 bool add_persistence(BESContainerStorage *p)
Add a persistent store to the list.
virtual std::string default_catalog_name() const
The name of the default catalog.
virtual void dump(ostream &strm) const
dump the contents of this object to the specified ostream
implementation of BESContainerStorage that represents a data within a catalog repository
static BESCatalogList * TheCatalogList()
Get the singleton BESCatalogList instance.
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
static void handle_dap_service(const string &handler)
static function to register a handler to handle the dap services