#include <CPUStat.h>
Public Member Functions | |
void | addEntry (int sta) |
CPUStat (unsigned int nstates, std::string iDieUrl) | |
void | printStat () |
void | reset () |
void | sendLegenda (const std::vector< std::string > &) |
void | sendStat (unsigned int) |
~CPUStat () | |
Private Attributes | |
int | entries_ |
std::string | iDieUrl_ |
int * | mstat_ |
int | nstates_ |
CurlPoster * | poster_ |
evf::CPUStat::CPUStat | ( | unsigned int | nstates, |
std::string | iDieUrl | ||
) |
evf::CPUStat::~CPUStat | ( | ) |
void evf::CPUStat::addEntry | ( | int | sta | ) | [inline] |
void evf::CPUStat::printStat | ( | ) | [inline] |
void evf::CPUStat::reset | ( | void | ) | [inline] |
void evf::CPUStat::sendLegenda | ( | const std::vector< std::string > & | mapmod | ) |
Definition at line 26 of file CPUStat.cc.
References i, evf::CurlPoster::leg, argparse::message, poster_, and evf::CurlPoster::postString().
Referenced by evf::FUEventProcessor::configuring(), and evf::FUEventProcessor::enabling().
{ std::string message; unsigned int i = 0; while(i<mapmod.size()){ message+=mapmod[i]; if(++i!=mapmod.size()) message+=","; } poster_->postString(message.c_str(),message.length(),0,CurlPoster::leg,"/postChoke"); }
void evf::CPUStat::sendStat | ( | unsigned int | lsid | ) |
Definition at line 21 of file CPUStat.cc.
References mstat_, nstates_, evf::CurlPoster::postBinary(), and poster_.
Referenced by evf::FUEventProcessor::summarize().
int evf::CPUStat::entries_ [private] |
Definition at line 39 of file CPUStat.h.
Referenced by addEntry(), printStat(), and reset().
std::string evf::CPUStat::iDieUrl_ [private] |
int* evf::CPUStat::mstat_ [private] |
Definition at line 40 of file CPUStat.h.
Referenced by addEntry(), CPUStat(), printStat(), reset(), sendStat(), and ~CPUStat().
int evf::CPUStat::nstates_ [private] |
Definition at line 38 of file CPUStat.h.
Referenced by CPUStat(), printStat(), reset(), and sendStat().
CurlPoster* evf::CPUStat::poster_ [private] |
Definition at line 37 of file CPUStat.h.
Referenced by CPUStat(), sendLegenda(), sendStat(), and ~CPUStat().