bes
Updated for version 3.20.6
|
33 #include "BESDelDefsResponseHandler.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"
54 BESDelDefsResponseHandler::BESDelDefsResponseHandler(
const string &name) :
59 BESDelDefsResponseHandler::~BESDelDefsResponseHandler()
86 dhi.action_name = DELETE_DEFINITIONS_STR;
87 BESInfo *info =
new BESSilentInfo();
88 d_response_object = info;
91 string store_name = dhi.
data[STORE_NAME];
92 if (store_name ==
"") store_name = DEFAULT;
97 string line = (string)
"Unable to delete all definitions " +
"from definition store \"" + store_name +
"\"";
102 string line = (string)
"Definition store \"" + store_name +
"\" does not exist. Unable to delete.";
122 if( d_response_object )
140 strm << BESIndent::LMarg <<
"BESDelDefsResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
143 BESIndent::UnIndent();
147 BESDelDefsResponseHandler::DelDefsResponseBuilder(
const string &name)
response handler that deletes all definitions from a specified definition store.
provides persistent storage for a specific view of different containers including contraints and aggr...
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 transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
informational response object
virtual void execute(BESDataHandlerInterface &dhi)
executes the command to delete a container, a definition, or all definitions.
virtual bool del_definitions()=0
deletes all defintions from the definition store
error thrown if there is a user syntax error in the request or any other user error
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
exception thrown if internal error encountered
handler object that knows how to create a specific response object
virtual BESDefinitionStorage * find_persistence(const std::string &persist_name)
find the persistence store with the given name
virtual void dump(std::ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.