31#include <BESRequestHandlerList.h>
33#include <BESContainerStorageList.h>
36#include "S3RequestHandler.h"
37#include "S3ContainerStorage.h"
42void S3Module::initialize(
const string &modname)
44 BESDEBUG(modname,
"Initializing s3 Module " << modname << endl);
46 BESRequestHandlerList::TheList()->add_handler(modname,
new S3RequestHandler(modname));
48 BESContainerStorageList::TheList()->add_persistence(
new S3ContainerStorage(modname));
52 BESDEBUG(modname,
"Done Initializing s3 Module " << modname << endl);
55void S3Module::terminate(
const string &modname)
57 BESDEBUG(modname,
"Cleaning s3 module " << modname << endl);
59 BESRequestHandler *rh = BESRequestHandlerList::TheList()->remove_handler(modname);
62 BESContainerStorageList::TheList()->deref_persistence(modname);
64 BESDEBUG(modname,
"Done Cleaning s3 module " << modname << endl);
69 strm << BESIndent::LMarg <<
"S3Module::dump - (" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
void dump(std::ostream &strm) const override
dump the contents of this object to the specified ostream