bes
Updated for version 3.20.5
|
33 #include "BESDelContainersResponseHandler.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 BESDelContainersResponseHandler::BESDelContainersResponseHandler(
const string &name) :
55 BESDelContainersResponseHandler::~BESDelContainersResponseHandler()
82 dhi.action_name = DELETE_CONTAINERS_STR;
83 BESInfo *info =
new BESSilentInfo();
84 d_response_object = info;
87 string store_name = dhi.
data[STORE_NAME];
88 if (store_name ==
"") {
89 store_name = CATALOG ;
96 string line = (string)
"Unable to delete containers from \"" + dhi.
data[STORE_NAME] +
"\" container store";
101 string line = (string)
"Container storage \"" + dhi.
data[STORE_NAME] +
"\" does not exist. " +
"Unable to delete containers";
121 if( d_response_object )
123 BESInfo *info = dynamic_cast<BESInfo *>(d_response_object);
139 strm << BESIndent::LMarg <<
"BESDelContainersResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
142 BESIndent::UnIndent();
146 BESDelContainersResponseHandler::DelContainersResponseBuilder(
const string &name)
response handler that deletes all containers from a specified container store
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 transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
virtual void dump(ostream &strm) const
dumps information about this object
informational response object
virtual bool del_containers()=0
removes all container
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 transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object
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 execute(BESDataHandlerInterface &dhi)
executes the command to delete all containers from a specified container store.
- dispatch
- BESDelContainersResponseHandler.cc