bes
Updated for version 3.20.6
|
29 #include "DapModule.h"
30 #include "DapRequestHandler.h"
32 #include <BESRequestHandlerList.h>
35 #include <BESDapService.h>
36 #include <BESResponseNames.h>
37 #include <BESContainerStorageList.h>
38 #include <BESFileContainerStorage.h>
39 #include <BESCatalogDirectory.h>
40 #include <BESCatalogList.h>
42 #include "BESInternalError.h"
44 void DapModule::initialize(
const string &modname)
46 BESDEBUG(modname,
"Initializing Dap Reader Module " << modname << endl);
54 throw BESInternalError(
"Should never have to add the default catalog.", __FILE__, __LINE__);
58 if (!BESContainerStorageList::TheList()->ref_persistence(default_catalog_name)) {
65 BESDEBUG(modname,
"Done Initializing Dap Reader Module " << modname << endl);
68 void DapModule::terminate(
const string &modname)
70 BESDEBUG(modname,
"Cleaning Dap Reader Module " << modname << endl);
79 BESDEBUG(modname,
"Done Cleaning Dap Reader Module " << modname << endl);
91 strm << BESIndent::LMarg <<
"DapModule::dump - (" << (
void *)
this <<
")" << endl;
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
virtual void dump(std::ostream &strm) const
dump the contents of this object to the specified ostream
virtual bool deref_persistence(const std::string &persist_name)
dereference a persistent store in the list.
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
exception thrown if internal error encountered
virtual std::string default_catalog_name() const
The name of the default catalog.
static void handle_dap_service(const std::string &handler)
static function to register a handler to handle the dap services