bes
Updated for version 3.20.5
|
35 #include "BESProcIdResponseHandler.h"
36 #include "BESInfoList.h"
38 #include "BESResponseNames.h"
41 BESProcIdResponseHandler::BESProcIdResponseHandler(
const string &name )
46 BESProcIdResponseHandler::~BESProcIdResponseHandler( )
64 BESInfo *info = BESInfoList::TheList()->build_info() ;
65 d_response_object = info ;
66 dhi.action_name = PROCESS_RESPONSE_STR ;
70 map<string,string> props ;
71 props[
"pid"] = mypid ;
72 info->add_tag(
"process",
"", &props ) ;
73 info->end_response() ;
92 if( d_response_object )
94 BESInfo *info = dynamic_cast<BESInfo *>(d_response_object) ;
110 strm << BESIndent::LMarg <<
"BESProcIdResponseHandler::dump - ("
111 << (
void *)
this <<
")" << endl ;
112 BESIndent::Indent() ;
114 BESIndent::UnIndent() ;
118 BESProcIdResponseHandler::ProcIdResponseBuilder(
const string &name )
response handler that returns the process id for the server process
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void dump(ostream &strm) const
dumps information about this object
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
static char * fastpidconverter(char *buf, int base)
exception thrown if inernal error encountered
handler object that knows how to create a specific response object
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'show process;' by returning the process id of the server process
Structure storing information used by the BES to handle the request.
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object