33#include "BESStatusResponseHandler.h"
34#include "BESInfoList.h"
37#include "BESResponseNames.h"
57 BESInfo *info = BESInfoList::TheList()->build_info();
58 d_response_object = info;
60 dhi.action_name = STATUS_RESPONSE_STR;
62 info->add_tag(
"status", s.get_status());
80 if (d_response_object) {
81 auto info =
dynamic_cast<BESInfo *
>(d_response_object);
84 info->transmit(transmitter, dhi);
96 strm << BESIndent::LMarg <<
"BESStatusResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
99 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
informational response object
virtual void begin_response(const std::string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
exception thrown if internal error encountered
void dump(std::ostream &strm) const override
dumps information about this object
void dump(std::ostream &strm) const override
dumps information about this object
void execute(BESDataHandlerInterface &dhi) override
executes the command 'show status;' by returning the status of the server process
void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi) override
transmit the response object built by the execute command using the specified transmitter object