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