33 #include "BESStatusResponseHandler.h" 34 #include "BESInfoList.h" 36 #include "BESStatus.h" 37 #include "BESResponseNames.h" 39 BESStatusResponseHandler::BESStatusResponseHandler(
const string &name )
44 BESStatusResponseHandler::~BESStatusResponseHandler( )
63 BESInfo *info = BESInfoList::TheList()->build_info() ;
66 dhi.action_name = STATUS_RESPONSE_STR ;
68 info->add_tag(
"status", s.get_status() ) ;
69 info->end_response() ;
106 strm << BESIndent::LMarg <<
"BESStatusResponseHandler::dump - (" 107 << (
void *)
this <<
")" << endl ;
108 BESIndent::Indent() ;
110 BESIndent::UnIndent() ;
114 BESStatusResponseHandler::StatusResponseBuilder(
const string &name )
exception thrown if inernal error encountered
virtual void dump(ostream &strm) const
dumps information about this object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
handler object that knows how to create a specific response object
informational response object
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'show status;' by returning the status of the server process ...
Structure storing information used by the BES to handle the request.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
response handler that returns the status of the server process serving the requesting client ...
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object ...