bes
Updated for version 3.20.5
|
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() ;
64 d_response_object = info ;
66 dhi.action_name = STATUS_RESPONSE_STR ;
68 info->add_tag(
"status", s.get_status() ) ;
69 info->end_response() ;
88 if( d_response_object )
90 BESInfo *info = dynamic_cast<BESInfo *>(d_response_object) ;
106 strm << BESIndent::LMarg <<
"BESStatusResponseHandler::dump - ("
107 << (
void *)
this <<
")" << endl ;
108 BESIndent::Indent() ;
110 BESIndent::UnIndent() ;
114 BESStatusResponseHandler::StatusResponseBuilder(
const string &name )
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
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)=0
transmit the informational object
informational response object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object
exception thrown if inernal error encountered
handler object that knows how to create a specific response object
response handler that returns the status of the server process serving the requesting client
Structure storing information used by the BES to handle the request.
virtual void dump(ostream &strm) const
dumps information about this object