#include <DataManager.h>
Public Types | |
typedef EventRetriever < stor::DQMEventConsumerRegistrationInfo, stor::DQMEventQueueCollectionPtr > | DQMEventRetriever |
Public Member Functions | |
DataManager (StateMachine *) | |
bool | getQueueIDsFromDataEventRetrievers (stor::EventConsRegPtr, stor::QueueIDs &) const |
bool | getQueueIDsFromDQMEventRetrievers (stor::DQMEventConsRegPtr, stor::QueueIDs &) const |
void | start (DataRetrieverParams const &) |
void | stop () |
~DataManager () | |
Private Types | |
typedef EventRetriever < stor::EventConsumerRegistrationInfo, EventQueueCollectionPtr > | DataEventRetriever |
typedef std::map < stor::EventConsRegPtr, DataEventRetrieverPtr, stor::utils::ptrComp < stor::EventConsumerRegistrationInfo > > | DataEventRetrieverMap |
typedef boost::shared_ptr < DataEventRetriever > | DataEventRetrieverPtr |
typedef std::map < stor::DQMEventConsRegPtr, DQMEventRetrieverPtr, stor::utils::ptrComp < stor::DQMEventConsumerRegistrationInfo > > | DQMEventRetrieverMap |
typedef boost::shared_ptr < DQMEventRetriever > | DQMEventRetrieverPtr |
Private Member Functions | |
void | activity () |
bool | addDQMEventConsumer (stor::RegPtr) |
bool | addEventConsumer (stor::RegPtr) |
void | checkForStaleConsumers () |
void | doIt () |
void | watchDog () |
Private Attributes | |
DataEventRetrieverMap | dataEventRetrievers_ |
DataRetrieverParams | dataRetrieverParams_ |
DQMEventRetrieverMap | dqmEventRetrievers_ |
stor::RegistrationQueuePtr | registrationQueue_ |
StateMachine * | stateMachine_ |
boost::scoped_ptr< boost::thread > | thread_ |
boost::scoped_ptr< boost::thread > | watchDogThread_ |
Manages the data retrieval
Definition at line 36 of file DataManager.h.
|
private |
Definition at line 94 of file DataManager.h.
|
private |
Definition at line 97 of file DataManager.h.
|
private |
Definition at line 95 of file DataManager.h.
typedef EventRetriever<stor::DQMEventConsumerRegistrationInfo, stor::DQMEventQueueCollectionPtr> smproxy::DataManager::DQMEventRetriever |
Definition at line 75 of file DataManager.h.
|
private |
Definition at line 102 of file DataManager.h.
|
private |
Definition at line 100 of file DataManager.h.
smproxy::DataManager::DataManager | ( | StateMachine * | stateMachine | ) |
Definition at line 18 of file DataManager.cc.
References checkForStaleConsumers().
smproxy::DataManager::~DataManager | ( | ) |
Definition at line 29 of file DataManager.cc.
References stop(), and watchDogThread_.
|
private |
Definition at line 103 of file DataManager.cc.
References doIt(), alignCSCRings::e, cppFunctionSkipper::exception, edm::hlt::Exception, smproxy::StateMachine::moveToFailedState(), stateMachine_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 179 of file DataManager.cc.
References dqmEventRetrievers_, pos, and stateMachine_.
Referenced by doIt().
|
private |
Definition at line 150 of file DataManager.cc.
References dataEventRetrievers_, pos, and stateMachine_.
Referenced by doIt().
|
private |
Definition at line 238 of file DataManager.cc.
References stor::utils::getCurrentTime(), smproxy::StateMachine::getDQMEventQueueCollection(), smproxy::StateMachine::getEventQueueCollection(), cmsPerfSuiteHarvest::now, seconds(), stor::utils::sleep(), and stateMachine_.
Referenced by DataManager(), and watchDog().
|
private |
Definition at line 129 of file DataManager.cc.
References addDQMEventConsumer(), addEventConsumer(), smproxy::DQMArchiver::getRegPtr(), LaserDQM_cfg::process, registrationQueue_, and stateMachine_.
Referenced by activity(), HiHelperTools.MassSearchReplaceAnyInputTagVisitor::doIt(), helpers.MassSearchReplaceAnyInputTagVisitor::doIt(), HiHelperTools.MassSearchReplaceAnyInputTagVisitor::enter(), helpers.MassSearchReplaceAnyInputTagVisitor::enter(), and start().
bool smproxy::DataManager::getQueueIDsFromDataEventRetrievers | ( | stor::EventConsRegPtr | eventConsumer, |
stor::QueueIDs & | queueIDs | ||
) | const |
Get list of data event consumer queueIDs for given event type. Returns false if the event type is not found.
Definition at line 70 of file DataManager.cc.
References pos.
bool smproxy::DataManager::getQueueIDsFromDQMEventRetrievers | ( | stor::DQMEventConsRegPtr | dqmEventConsumer, |
stor::QueueIDs & | queueIDs | ||
) | const |
Get list of DQM event consumer queueIDs for given event type. Returns false if the event type is not found.
Definition at line 87 of file DataManager.cc.
References pos.
void smproxy::DataManager::start | ( | DataRetrieverParams const & | drp | ) |
Start retrieving data
Definition at line 37 of file DataManager.cc.
References dataEventRetrievers_, dataRetrieverParams_, doIt(), dqmEventRetrievers_, edm::shutdown_flag, and thread_.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void smproxy::DataManager::stop | ( | ) |
Stop retrieving data
Definition at line 49 of file DataManager.cc.
References dataEventRetrievers_, dqmEventRetrievers_, registrationQueue_, edm::shutdown_flag, and thread_.
Referenced by ~DataManager().
|
private |
Definition at line 208 of file DataManager.cc.
References checkForStaleConsumers(), alignCSCRings::e, cppFunctionSkipper::exception, edm::hlt::Exception, smproxy::StateMachine::moveToFailedState(), stateMachine_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 98 of file DataManager.h.
Referenced by addEventConsumer(), start(), and stop().
|
private |
Definition at line 88 of file DataManager.h.
Referenced by start().
|
private |
Definition at line 103 of file DataManager.h.
Referenced by addDQMEventConsumer(), start(), and stop().
|
private |
Definition at line 87 of file DataManager.h.
|
private |
Definition at line 86 of file DataManager.h.
Referenced by activity(), addDQMEventConsumer(), addEventConsumer(), checkForStaleConsumers(), doIt(), and watchDog().
|
private |
Definition at line 90 of file DataManager.h.
|
private |
Definition at line 91 of file DataManager.h.
Referenced by ~DataManager().