34 #include <BESRequestHandlerList.h> 35 #include <BESDapService.h> 36 #include <BESContainerStorageList.h> 37 #include <BESFileContainerStorage.h> 38 #include <BESCatalogDirectory.h> 39 #include <BESCatalogList.h> 43 #include "NCRequestHandler.h" 47 #define NC_CATALOG "catalog" 49 void NCModule::initialize(
const string & modname)
51 BESDEBUG(
"nc",
"Initializing NC module " << modname << endl);
54 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
62 BESDEBUG(
"nc",
" catalog already exists, skipping" << endl);
65 if (!BESContainerStorageList::TheList()->ref_persistence( NC_CATALOG)) {
69 BESDEBUG(
"nc",
" storage already exists, skipping" << endl);
74 BESDEBUG(
"nc",
"Done Initializing NC module " << modname << endl);
77 void NCModule::terminate(
const string & modname)
79 BESDEBUG(
"nc",
"Cleaning NC module " << modname << endl);
88 BESDEBUG(
"nc",
"Done Cleaning NC module " << modname << endl);
99 strm << BESIndent::LMarg <<
"NCModule::dump - (" << (
void *)
this <<
")" << endl;
virtual void dump(ostream &strm) const
dumps information about this object
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_catalog(BESCatalog *catalog)
adds the specified catalog to 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.
Catalogs from a directory structure.
Represents a specific data type request handler.
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