bes
Updated for version 3.20.5
|
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"
46 #define prolog std::string("BESSetContainerResponseHandler::").append(__func__).append("() - ")
48 BESSetContainerResponseHandler::BESSetContainerResponseHandler(
const string &name) :
53 BESSetContainerResponseHandler::~BESSetContainerResponseHandler()
78 BESDEBUG(MODULE, prolog <<
"store = " << dhi.
data[STORE_NAME] << endl);
79 BESDEBUG(MODULE, prolog <<
"symbolic = " << dhi.
data[SYMBOLIC_NAME] << endl);
80 BESDEBUG(MODULE, prolog <<
"real = " << dhi.
data[REAL_NAME] << endl);
81 BESDEBUG(MODULE, prolog <<
"type = " << dhi.
data[CONTAINER_TYPE] << endl);
94 string ret = (string)
"Unable to add container '" + dhi.
data[SYMBOLIC_NAME] +
"' to container storage '" + dhi.
data[STORE_NAME] +
"'. Store does not exist.";
120 strm << BESIndent::LMarg <<
"BESSetContainerResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
123 BESIndent::UnIndent();
127 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(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
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
map< string, string > data
the map of string data that will be required for the current request.
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