#include <CurlPoster.h>
Public Types | |
enum | mode { text, stack, leg, legaux, bin } |
Public Member Functions | |
bool | check (int) |
CurlPoster (const std::string &url) | |
void | postBinary (const unsigned char *, size_t, unsigned int, const std::string &=standard_post_method_) |
void | postString (const char *, size_t, unsigned int, mode, const std::string &=standard_post_method_) |
virtual | ~CurlPoster () |
Private Member Functions | |
void | post (const unsigned char *, size_t, unsigned int, mode, const std::string &) |
Private Attributes | |
bool | active_ |
struct utsname * | buf_ |
std::string | url_ |
Static Private Attributes | |
static const std::string | standard_post_method_ = "/postEntry" |
Definition at line 10 of file CurlPoster.h.
Enumerator | |
---|---|
text | |
stack | |
leg | |
legaux | |
bin |
Definition at line 14 of file CurlPoster.h.
|
inline |
|
inlinevirtual |
bool evf::CurlPoster::check | ( | int | run | ) |
Definition at line 125 of file CurlPoster.cc.
References active_, gather_cfg::cout, error, summarizeEdmComparisonLogfiles::success, url_, and evf::write_data().
Referenced by evf::Vulture::control().
|
private |
Definition at line 18 of file CurlPoster.cc.
References bin, buf_, ws_sso_content_reader::content, gather_cfg::cout, error, prof2calltree::last, leg, legaux, PFRecoTauDiscriminationAgainstElectronMVA2_cfi::method, lumiQueryAPI::msg, NULL, stack, summarizeEdmComparisonLogfiles::success, text, and url_.
Referenced by postBinary(), and postString().
void evf::CurlPoster::postBinary | ( | const unsigned char * | content, |
size_t | len, | ||
unsigned int | run, | ||
const std::string & | post_method = standard_post_method_ |
||
) |
Definition at line 118 of file CurlPoster.cc.
References active_, bin, and post().
Referenced by evf::RateStat::sendStat(), and evf::CPUStat::sendStat().
void evf::CurlPoster::postString | ( | const char * | content, |
size_t | len, | ||
unsigned int | run, | ||
mode | m, | ||
const std::string & | post_method = standard_post_method_ |
||
) |
Definition at line 112 of file CurlPoster.cc.
References active_, and post().
Referenced by evf::Vulture::analyze(), evf::Vulture::prowling(), evf::RateStat::sendAuxLegenda(), evf::RateStat::sendLegenda(), and evf::CPUStat::sendLegenda().
|
private |
Definition at line 30 of file CurlPoster.h.
Referenced by check(), postBinary(), and postString().
|
private |
Definition at line 31 of file CurlPoster.h.
Referenced by CurlPoster(), post(), and ~CurlPoster().
|
staticprivate |
Definition at line 32 of file CurlPoster.h.
|
private |
Definition at line 29 of file CurlPoster.h.