bes
Updated for version 3.20.6
|
33 #include "BESSetContainerResponseHandler.h"
35 #include "BESCatalogList.h"
36 #include "BESContainerStorageList.h"
37 #include "BESContainerStorage.h"
38 #include "BESDataNames.h"
39 #include "BESSyntaxUserError.h"
40 #include "BESResponseNames.h"
41 #include "BESDataHandlerInterface.h"
50 #define prolog std::string("BESSetContainerResponseHandler::").append(__func__).append("() - ")
52 BESSetContainerResponseHandler::BESSetContainerResponseHandler(
const string &name) :
57 BESSetContainerResponseHandler::~BESSetContainerResponseHandler()
82 BESDEBUG(MODULE, prolog <<
"store = " << dhi.
data[STORE_NAME] << endl);
83 BESDEBUG(MODULE, prolog <<
"symbolic = " << dhi.
data[SYMBOLIC_NAME] << endl);
84 BESDEBUG(MODULE, prolog <<
"real = " << dhi.
data[REAL_NAME] << endl);
85 BESDEBUG(MODULE, prolog <<
"type = " << dhi.
data[CONTAINER_TYPE] << endl);
98 string ret = (string)
"Unable to add container '" + dhi.
data[SYMBOLIC_NAME] +
"' to container storage '" + dhi.
data[STORE_NAME] +
"'. Store does not exist.";
124 strm << BESIndent::LMarg <<
"BESSetContainerResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
127 BESIndent::UnIndent();
131 BESSetContainerResponseHandler::SetContainerResponseBuilder(
const string &name)
provides persistent storage for data storage information represented by a container.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void execute(BESDataHandlerInterface &dhi)
executes the command to create a new container or replaces an already existing container based on the...
error thrown if there is a user syntax error in the request or any other user error
virtual BESContainerStorage * find_persistence(const std::string &persist_name)
find the persistence store with the given name
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
virtual void delete_container(const std::string &sym_name)
scan all of the container stores and remove any containers called
response handler that creates a container given the symbolic name, real name, and data type.
virtual void add_container(const std::string &sym_name, const std::string &real_name, const std::string &type)=0
adds a container with the provided information
handler object that knows how to create a specific response object
virtual bool del_container(const std::string &s_name)=0
removes a container with the given symbolic name
Structure storing information used by the BES to handle the request.
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
The setContainer command does not return a response.
- dispatch
- BESSetContainerResponseHandler.cc