bes
Updated for version 3.20.5
|
33 #include "BESDelContainerResponseHandler.h"
36 #include "BESSilentInfo.h"
39 #include "BESDefinitionStorageList.h"
40 #include "BESDefinitionStorage.h"
41 #include "BESDefine.h"
42 #include "BESContainerStorageList.h"
43 #include "BESContainerStorage.h"
44 #include "BESContainer.h"
45 #include "BESDataNames.h"
46 #include "BESSyntaxUserError.h"
47 #include "BESResponseNames.h"
48 #include "BESDataHandlerInterface.h"
50 BESDelContainerResponseHandler::BESDelContainerResponseHandler(
const string &name) :
55 BESDelContainerResponseHandler::~BESDelContainerResponseHandler()
80 dhi.action_name = DELETE_CONTAINER_STR;
81 BESInfo *info =
new BESSilentInfo();
82 d_response_object = info;
85 string container_name = dhi.
data[CONTAINER_NAME];
86 string store_name = dhi.
data[STORE_NAME];
87 if (container_name !=
"") {
89 store_name = CATALOG ;
94 string err_str = (string)
"Unable to delete container. " +
"The container \"" + dhi.
data[CONTAINER_NAME]
95 +
"\" does not exist in container storage \"" + dhi.
data[STORE_NAME] +
"\"";
100 string err_str = (string)
"Container storage \"" + dhi.
data[STORE_NAME] +
"\" does not exist. "
101 +
"Unable to delete container \"" + dhi.
data[CONTAINER_NAME] +
"\"";
106 string err_str = (string)
"No container is specified. " +
"Unable to complete request.";
126 if (d_response_object) {
127 BESInfo *info = dynamic_cast<BESInfo *>(d_response_object);
143 strm << BESIndent::LMarg <<
"BESDelContainerResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
146 BESIndent::UnIndent();
150 BESDelContainerResponseHandler::DelContainerResponseBuilder(
const string &name)
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object
response handler that deletes a container
provides persistent storage for data storage information represented by a container.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
informational response object
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
exception thrown if inernal error encountered
handler object that knows how to create a specific response object
virtual void execute(BESDataHandlerInterface &dhi)
executes the command to delete a container
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.
- dispatch
- BESDelContainerResponseHandler.cc