#include <EventServerProxy.h>
Public Member Functions | |
EventServerProxy (edm::ParameterSet const &) | |
bool | getEventMaybe (CurlInterface::Content &data) |
void | getInitMsg (CurlInterface::Content &data) |
template<> | |
void | getInitMsg (CurlInterface::Content &data) |
void | getOneEvent (CurlInterface::Content &data) |
void | reconnect () |
virtual | ~EventServerProxy () |
Private Member Functions | |
void | checkEvent (CurlInterface::Content &) |
void | checkInitMsg (CurlInterface::Content &) |
template<> | |
void | checkInitMsg (CurlInterface::Content &data) |
void | connectToEventServer (CurlInterface::Content &) |
bool | extractConsumerId (CurlInterface::Content &) |
void | getInitMsgFromEventServer (CurlInterface::Content &) |
template<> | |
void | getInitMsgFromEventServer (CurlInterface::Content &data) |
void | getOneEventFromEventServer (CurlInterface::Content &) |
void | registerWithEventServer () |
Private Attributes | |
bool | alreadySaidHalted_ |
bool | alreadySaidWaiting_ |
unsigned int | consumerId_ |
unsigned int | failedAttemptsToGetData_ |
const stor::utils::Duration_t | minEventRequestInterval_ |
stor::utils::TimePoint_t | nextRequestTime_ |
const RegInfo | regInfo_ |
Retrieve events from the Storage Manager event server.
This does uses a HTTP get using the CURL library. The Storage Manager event server responses with a binary octet-stream. The init message is also obtained through a HTTP get.
Definition at line 36 of file EventServerProxy.h.
stor::EventServerProxy< RegInfo >::EventServerProxy | ( | edm::ParameterSet const & | ) |
|
inlinevirtual |
Definition at line 42 of file EventServerProxy.h.
|
private |
|
private |
|
inlineprivate |
Definition at line 144 of file EventServerProxy.h.
References HeaderView::code(), hcal_timing_source_file_cfg::dump, edm::hlt::Exception, and Header::INIT.
|
private |
|
private |
bool stor::EventServerProxy< RegInfo >::getEventMaybe | ( | CurlInterface::Content & | data | ) |
Try to get one event from the event server. If succesful, returns true.
void stor::EventServerProxy< RegInfo >::getInitMsg | ( | CurlInterface::Content & | data | ) |
Get the init message from the the event server.
Referenced by edm::EventStreamHttpReader::readHeader().
|
inline |
Definition at line 177 of file EventServerProxy.h.
References edm::hlt::Exception, and edm::shutdown_flag.
|
private |
|
inlineprivate |
Definition at line 95 of file EventServerProxy.h.
References convert(), data, stor::CurlInterface::getInterface(), Header::HEADER_REQUEST, OtherMessageBuilder::msgBody(), query::result, OtherMessageBuilder::size(), stor::utils::sleep(), and OtherMessageBuilder::startAddress().
void stor::EventServerProxy< RegInfo >::getOneEvent | ( | CurlInterface::Content & | data | ) |
Get one event from the event server.
Referenced by edm::EventStreamHttpReader::read(), and edm::DQMHttpSource::readOneEvent().
|
private |
void stor::EventServerProxy< RegInfo >::reconnect | ( | ) |
Reconnect to the event server
|
private |
|
private |
Definition at line 81 of file EventServerProxy.h.
|
private |
Definition at line 82 of file EventServerProxy.h.
|
private |
Definition at line 77 of file EventServerProxy.h.
|
private |
Definition at line 83 of file EventServerProxy.h.
|
private |
Definition at line 79 of file EventServerProxy.h.
|
private |
Definition at line 78 of file EventServerProxy.h.
|
private |
Definition at line 76 of file EventServerProxy.h.