33#include "BESDelContainersResponseHandler.h"
36#include "BESSilentInfo.h"
39#include "BESDefinitionStorageList.h"
40#include "BESDefinitionStorage.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"
54BESDelContainersResponseHandler::BESDelContainersResponseHandler(
const string &name) :
59BESDelContainersResponseHandler::~BESDelContainersResponseHandler()
86 dhi.action_name = DELETE_CONTAINERS_STR;
87 BESInfo *info =
new BESSilentInfo();
88 d_response_object = info;
91 string store_name = dhi.
data[STORE_NAME];
92 if (store_name ==
"") {
93 store_name = CATALOG ;
100 string line = (string)
"Unable to delete containers from \"" + dhi.
data[STORE_NAME] +
"\" container store";
105 string line = (string)
"Container storage \"" + dhi.
data[STORE_NAME] +
"\" does not exist. " +
"Unable to delete containers";
125 if( d_response_object )
143 strm << BESIndent::LMarg <<
"BESDelContainersResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
146 BESIndent::UnIndent();
150BESDelContainersResponseHandler::DelContainersResponseBuilder(
const string &name)
provides persistent storage for data storage information represented by a container.
virtual bool del_containers()=0
removes all container
Structure storing information used by the BES to handle the request.
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
response handler that deletes all containers from a specified container store
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void execute(BESDataHandlerInterface &dhi)
executes the command to delete all containers from a specified container store.
informational response object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
exception thrown if internal error encountered
handler object that knows how to create a specific response object
void dump(std::ostream &strm) const override
dumps information about this object
error thrown if there is a user syntax error in the request or any other user error