#include <ConsumerUtils.h>
Public Member Functions | |
ConsumerUtils (boost::shared_ptr< Configuration_t >, RegistrationCollectionPtr, RegistrationQueuePtr, InitMsgCollectionPtr, boost::shared_ptr< EventQueueCollection_t >, DQMEventQueueCollectionPtr, AlarmHandlerPtr) | |
void | processConsumerEventRequest (xgi::Input *, xgi::Output *) const |
void | processConsumerHeaderRequest (xgi::Input *, xgi::Output *) const |
void | processConsumerRegistrationRequest (xgi::Input *, xgi::Output *) const |
void | processDQMConsumerEventRequest (xgi::Input *, xgi::Output *) const |
void | processDQMConsumerRegistrationRequest (xgi::Input *, xgi::Output *) const |
Private Attributes | |
AlarmHandlerPtr | alarmHandler_ |
boost::shared_ptr < Configuration_t > | configuration_ |
DQMEventQueueCollectionPtr | dqmEventQueueCollection_ |
boost::shared_ptr < EventQueueCollection_t > | eventQueueCollection_ |
InitMsgCollectionPtr | initMsgCollection_ |
RegistrationCollectionPtr | registrationCollection_ |
RegistrationQueuePtr | registrationQueue_ |
Handles consumer requests and responses
Definition at line 45 of file ConsumerUtils.h.
stor::ConsumerUtils< Configuration_t, EventQueueCollection_t >::ConsumerUtils | ( | boost::shared_ptr< Configuration_t > | , |
RegistrationCollectionPtr | , | ||
RegistrationQueuePtr | , | ||
InitMsgCollectionPtr | , | ||
boost::shared_ptr< EventQueueCollection_t > | , | ||
DQMEventQueueCollectionPtr | , | ||
AlarmHandlerPtr | |||
) |
|
private |
Add registration information to RegistrationCollection and to registration queue. Return true on success.
|
private |
Create a DQM event consumer queue. Returns true on success.
|
private |
Create the DQM event consumer registration info for this request
|
private |
Create an event consumer queue. Returns true on success.
|
private |
Create the event consumer registration info for this request
|
private |
Extract consumer ID from header request:
|
private |
Parse DQM consumer registration request
|
private |
Parse consumer registration request
void stor::ConsumerUtils< Configuration_t, EventQueueCollection_t >::processConsumerEventRequest | ( | xgi::Input * | , |
xgi::Output * | |||
) | const |
Process event request from an event consumer
void stor::ConsumerUtils< Configuration_t, EventQueueCollection_t >::processConsumerHeaderRequest | ( | xgi::Input * | , |
xgi::Output * | |||
) | const |
Process header (init msg) request from an event consumer
void stor::ConsumerUtils< Configuration_t, EventQueueCollection_t >::processConsumerRegistrationRequest | ( | xgi::Input * | , |
xgi::Output * | |||
) | const |
Process registration request from an event consumer
void stor::ConsumerUtils< Configuration_t, EventQueueCollection_t >::processDQMConsumerEventRequest | ( | xgi::Input * | , |
xgi::Output * | |||
) | const |
Process DQM event (histogram) request from a DQM event consumer
void stor::ConsumerUtils< Configuration_t, EventQueueCollection_t >::processDQMConsumerRegistrationRequest | ( | xgi::Input * | , |
xgi::Output * | |||
) | const |
Process registration request from a DQM event (histogram) consumer
|
private |
Send event to consumer:
|
private |
|
private |
Definition at line 384 of file SMProxyServer.cc.
References smproxy::EventMsg::dataLocation(), and smproxy::EventMsg::totalDataSize().
|
private |
Definition at line 746 of file StorageManager.cc.
References gather_cfg::cout, stor::I2OChain::dataLocation(), stor::I2OChain::dataSize(), stor::I2OChain::fragmentCount(), h, i, EventHeader::protocolVersion_, alignCSCRings::r, and rand().
|
private |
Send header to consumer:
|
private |
Send ID to consumer:
|
private |
Send a "done" message to consumer:
|
private |
Send DQM event to DQM consumer:
|
private |
Send empty buffer to consumer:
|
private |
Send an error message to consumer:
|
private |
Write HTTP headers:
|
private |
Tell consumer we're not ready:
|
private |
Definition at line 183 of file ConsumerUtils.h.
|
private |
Definition at line 177 of file ConsumerUtils.h.
|
private |
Definition at line 182 of file ConsumerUtils.h.
|
private |
Definition at line 181 of file ConsumerUtils.h.
|
private |
Definition at line 180 of file ConsumerUtils.h.
|
private |
Definition at line 178 of file ConsumerUtils.h.
|
private |
Definition at line 179 of file ConsumerUtils.h.