70 map<string,string> props ;
71 props[
"pid"] = mypid ;
72 info->
add_tag(
"process",
"", &props ) ;
111 << (
void *)
this <<
")" << endl ;
virtual BESInfo * build_info()
static BESResponseHandler * ProcIdResponseBuilder(const string &name)
virtual void end_response()
exception thrown if inernal error encountered
BESProcIdResponseHandler(const string &name)
static BESInfoList * TheList()
virtual ~BESProcIdResponseHandler(void)
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
virtual void add_tag(const string &tag_name, const string &tag_data, map< string, string > *attrs=0)=0
#define PROCESS_RESPONSE_STR
BESResponseObject * _response
handler object that knows how to create a specific response object
informational response object
static ostream & LMarg(ostream &strm)
virtual void dump(ostream &strm) const
dumps information about this object
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
static char * fastpidconverter(char *buf, int base)
convert pid and place in provided buffer
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 ...
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object ...