33 #include "BESDelContainersResponseHandler.h" 34 #include "BESSilentInfo.h" 35 #include "BESDefinitionStorageList.h" 36 #include "BESDefinitionStorage.h" 37 #include "BESDefine.h" 38 #include "BESContainerStorageList.h" 39 #include "BESContainerStorage.h" 40 #include "BESContainer.h" 41 #include "BESDataNames.h" 42 #include "BESSyntaxUserError.h" 43 #include "BESResponseNames.h" 45 BESDelContainersResponseHandler::BESDelContainersResponseHandler(
const string &name )
50 BESDelContainersResponseHandler::~BESDelContainersResponseHandler( )
77 dhi.action_name = DELETE_CONTAINERS_STR ;
81 string store_name = dhi.
data[STORE_NAME] ;
82 if( store_name ==
"" )
84 store_name = PERSISTENCE_VOLATILE ;
93 string line = (string)
"Unable to delete containers from \"" 94 + dhi.
data[STORE_NAME]
95 +
"\" container store" ;
101 string line = (string)
"Container storage \"" 102 + dhi.
data[STORE_NAME]
103 +
"\" does not exist. " 104 +
"Unable to delete containers" ;
130 info->
transmit( transmitter, dhi ) ;
143 strm << BESIndent::LMarg <<
"BESDelContainersResponseHandler::dump - (" 144 << (
void *)
this <<
")" << endl ;
145 BESIndent::Indent() ;
147 BESIndent::UnIndent() ;
151 BESDelContainersResponseHandler::DelContainersResponseBuilder(
const string &name )
response handler that deletes all containers from a specified container store
silent informational response object
provides persistent storage for data storage information represented by a container.
exception thrown if inernal error encountered
virtual BESContainerStorage * find_persistence(const string &persist_name)
find the persistence store with the given name
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
error thrown if there is a user syntax error in the request or any other user error ...
virtual void dump(ostream &strm) const
dumps information about this object
handler object that knows how to create a specific response object
informational response object
virtual bool del_containers()=0
removes all container
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object ...
Structure storing information used by the BES to handle the request.
map< string, string > data
the map of string data that will be required for the current request.
virtual void execute(BESDataHandlerInterface &dhi)
executes the command to delete all containers from a specified container store.
virtual void dump(ostream &strm) const
dumps information about this object