36#include <BESRequestHandlerList.h>
38#include <BESDapService.h>
39#include <BESContainerStorageList.h>
40#include <BESFileContainerStorage.h>
41#include <BESCatalogDirectory.h>
42#include <BESCatalogList.h>
44#define HDF5_CATALOG "catalog"
45#define prolog std::string("HDF5RequestHandler::").append(__func__).append("() - ")
49void HDF5Module::initialize(
const string & modname)
51 BESDEBUG(HDF5_NAME, prolog <<
"Initializing HDF5 module " << modname << endl);
54 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
62 if (!BESContainerStorageList::TheList()->ref_persistence(HDF5_CATALOG)) {
69 BESDEBUG(HDF5_NAME, prolog <<
"Done Initializing HDF5 " << modname << endl);
72void HDF5Module::terminate(
const string & modname)
74 BESDEBUG(HDF5_NAME, prolog <<
"Cleaning HDF5 module " << modname << endl);
83 BESDEBUG(HDF5_NAME, prolog <<
"Done Cleaning HDF5 module " << modname << endl);
94 strm << BESIndent::LMarg <<
"HDF5Module::dump - (" << (
void *)
this <<
")" << endl;
The starting and ending fuctions for the HDF5 OPeNDAP handler via BES.
include the entry functions to execute the handlers
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.
void dump(std::ostream &strm) const override
dumps information about this object