35#include "BESProcIdResponseHandler.h" 
   36#include "BESInfoList.h" 
   38#include "BESResponseNames.h" 
   46BESProcIdResponseHandler::BESProcIdResponseHandler( 
const string &name )
 
   51BESProcIdResponseHandler::~BESProcIdResponseHandler( )
 
   69    BESInfo *info = BESInfoList::TheList()->build_info() ;
 
   70    d_response_object = info ;
 
   71    dhi.action_name = PROCESS_RESPONSE_STR ;
 
   75    map<string, string, std::less<>> props ;
 
   76    props[
"pid"] = mypid ;
 
   77    info->add_tag( 
"process", 
"", &props ) ;
 
   78    info->end_response() ;
 
 
   97    if( d_response_object )
 
  102    info->
transmit( transmitter, dhi ) ;
 
 
  115    strm << BESIndent::LMarg << 
"BESProcIdResponseHandler::dump - (" 
  116                 << (
void *)
this << 
")" << endl ;
 
  117    BESIndent::Indent() ;
 
  119    BESIndent::UnIndent() ;
 
 
  123BESProcIdResponseHandler::ProcIdResponseBuilder( 
const string &name )
 
Structure storing information used by the BES to handle the request.
 
informational response object
 
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
 
virtual void begin_response(const std::string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
 
exception thrown if internal error encountered
 
response handler that returns the process id for the server process
 
virtual void dump(std::ostream &strm) const
dumps information about this object
 
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
 
handler object that knows how to create a specific response object
 
void dump(std::ostream &strm) const override
dumps information about this object
 
static char * fastpidconverter(char *buf, int base)