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() ;
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() ;
94 BESInfo *info = dynamic_cast<BESInfo *>(_response) ;
110 strm << BESIndent::LMarg <<
"BESProcIdResponseHandler::dump - (" 111 << (
void *)
this <<
")" << endl ;
112 BESIndent::Indent() ;
114 BESIndent::UnIndent() ;
118 BESProcIdResponseHandler::ProcIdResponseBuilder(
const string &name )
exception thrown if inernal error encountered
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 dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
virtual void dump(ostream &strm) const
dumps information about this object
static char * fastpidconverter(char *buf, int base)
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'show process;' by returning the process id of the server process
response handler that returns the process id for the server process
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object