#include <FUResourceBroker.h>
Public Member Functions | |
void | actionPerformed (xdata::Event &e) |
void | customWebPage (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
FUResourceBroker (xdaq::ApplicationStub *s) | |
xoap::MessageReference | handleFSMSoapMessage (xoap::MessageReference msg) throw (xoap::exception::Exception) |
void | I2O_EVM_LUMISECTION_Callback (toolbox::mem::Reference *bufRef) |
void | I2O_FU_DATA_DISCARD_Callback (toolbox::mem::Reference *bufRef) |
void | I2O_FU_DQM_DISCARD_Callback (toolbox::mem::Reference *bufRef) |
void | I2O_FU_TAKE_Callback (toolbox::mem::Reference *bufRef) |
unsigned int | instanceNumber () const |
void | webPageRequest (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
XDAQ_INSTANTIATOR () | |
virtual | ~FUResourceBroker () |
Static Public Attributes | |
static const int | CRC_ERROR_SHIFT = 0x0 |
static const int | DATA_ERROR_SHIFT = 0x1 |
static const int | LOST_ERROR_SHIFT = 0x2 |
static const int | SENT_ERREVENT_ERROR_SHIFT = 0x5 |
static const int | TIMEOUT_EVENT_ERROR_SHIFT = 0x4 |
static const int | TIMEOUT_NOEVENT_ERROR_SHIFT = 0x3 |
Private Member Functions | |
void | bindStateMachineCallbacks () |
void | exportParameters () |
bool | waitForStateChange (std::string name, int timeoutMicroSec) |
Private Attributes | |
xdata::String | class_ |
rb_statemachine::SMEventScheduler * | eventScheduler_ |
rb_statemachine::RBStateMachinePtr | fsm_ |
xdata::UnsignedInteger32 | instance_ |
rb_statemachine::SharedResourcesPtr_t | res_ |
xdata::String | url_ |
Main class of the Resource Broker XDAQ application.
Definition at line 49 of file FUResourceBroker.h.
FUResourceBroker::FUResourceBroker | ( | xdaq::ApplicationStub * | s | ) |
Definition at line 57 of file FUResourceBroker.cc.
References bindStateMachineCallbacks(), class_, customWebPage(), alignCSCRings::e, eventScheduler_, edm::hlt::Exception, exportParameters(), fsm_, I2O_EVM_LUMISECTION_Callback(), I2O_FU_DATA_DISCARD, I2O_FU_DATA_DISCARD_Callback(), I2O_FU_DQM_DISCARD, I2O_FU_DQM_DISCARD_Callback(), I2O_FU_TAKE_Callback(), instance_, mergeVDriftHistosByStation::name, res_, url_, and webPageRequest().
|
virtual |
Definition at line 133 of file FUResourceBroker.cc.
References eventScheduler_.
void FUResourceBroker::actionPerformed | ( | xdata::Event & | e | ) |
xdata::ActionListener callback(s)
Definition at line 403 of file FUResourceBroker.cc.
References evf::FUResource::doFedIdCheck(), alignCSCRings::e, res_, and evf::FUResource::useEvmBoard().
|
private |
Definition at line 142 of file FUResourceBroker.cc.
References handleFSMSoapMessage().
Referenced by FUResourceBroker().
void FUResourceBroker::customWebPage | ( | xgi::Input * | in, |
xgi::Output * | out | ||
) | |||
throw | ( | xgi::exception::Exception | |
) |
Definition at line 585 of file FUResourceBroker.cc.
References gather_cfg::cout, asciidump::els, i, recoMuon::in, dbtoconf::out, evf::utils::pid, runtimedef::set(), evf::utils::state, ntuplemaker::status, asciidump::table, and cond::rpcobgas::time.
Referenced by FUResourceBroker().
|
private |
Definition at line 478 of file FUResourceBroker.cc.
References class_, fsm_, instance_, res_, and url_.
Referenced by FUResourceBroker().
xoap::MessageReference FUResourceBroker::handleFSMSoapMessage | ( | xoap::MessageReference | msg | ) | |
throw | ( | xoap::exception::Exception | |||
) |
FSM SOAP command callback
Definition at line 175 of file FUResourceBroker.cc.
References edmPickEvents::command, evf::soaputils::createFsmSoapResponseMsg(), alignCSCRings::e, edm::hlt::Exception, evf::soaputils::extractParameters(), edm::hlt::Fail, lumiQueryAPI::msg, and alignCSCRings::s.
Referenced by bindStateMachineCallbacks().
void FUResourceBroker::I2O_EVM_LUMISECTION_Callback | ( | toolbox::mem::Reference * | bufRef | ) |
I2O End Of Lumisection callback, received from EVM
Definition at line 288 of file FUResourceBroker.cc.
References alignCSCRings::e, edm::hlt::Fail, cmsPerfPublish::fail(), fsm_, lumiQueryAPI::msg, res_, evf::rb_statemachine::RUNNING, and summarizeEdmComparisonLogfiles::success.
Referenced by FUResourceBroker().
void FUResourceBroker::I2O_FU_DATA_DISCARD_Callback | ( | toolbox::mem::Reference * | bufRef | ) |
I2O DATA DISCARD callback, received from SM
Definition at line 343 of file FUResourceBroker.cc.
References evf::rb_statemachine::BaseState::discardDataEvent(), fsm_, and res_.
Referenced by FUResourceBroker().
void FUResourceBroker::I2O_FU_DQM_DISCARD_Callback | ( | toolbox::mem::Reference * | bufRef | ) |
I2O DQM DISCARD callback, received from SM
Definition at line 368 of file FUResourceBroker.cc.
References evf::rb_statemachine::BaseState::discardDqmEvent(), fsm_, and res_.
Referenced by FUResourceBroker().
void FUResourceBroker::I2O_FU_TAKE_Callback | ( | toolbox::mem::Reference * | bufRef | ) |
I2O TAKE callback, received from BU
Definition at line 248 of file FUResourceBroker.cc.
References gather_cfg::cout, alignCSCRings::e, fsm_, res_, and evf::rb_statemachine::RUNNING.
Referenced by FUResourceBroker().
|
inline |
Definition at line 104 of file FUResourceBroker.h.
References instance_.
Referenced by evf::EvffedFillerRB::EvffedFillerRB().
|
private |
Definition at line 154 of file FUResourceBroker.cc.
References fsm_, cmsPerfSuiteHarvest::now, and errorMatrix2Lands_multiChannel::start.
void FUResourceBroker::webPageRequest | ( | xgi::Input * | in, |
xgi::Output * | out | ||
) | |||
throw | ( | xgi::exception::Exception | |
) |
Definition at line 393 of file FUResourceBroker.cc.
References recoMuon::in, mergeVDriftHistosByStation::name, and dbtoconf::out.
Referenced by FUResourceBroker().
evf::FUResourceBroker::XDAQ_INSTANTIATOR | ( | ) |
|
private |
Definition at line 139 of file FUResourceBroker.h.
Referenced by exportParameters(), and FUResourceBroker().
|
static |
Definition at line 109 of file FUResourceBroker.h.
|
static |
Definition at line 110 of file FUResourceBroker.h.
|
private |
Definition at line 129 of file FUResourceBroker.h.
Referenced by FUResourceBroker(), and ~FUResourceBroker().
|
private |
Definition at line 135 of file FUResourceBroker.h.
Referenced by exportParameters(), FUResourceBroker(), I2O_EVM_LUMISECTION_Callback(), I2O_FU_DATA_DISCARD_Callback(), I2O_FU_DQM_DISCARD_Callback(), I2O_FU_TAKE_Callback(), and waitForStateChange().
|
private |
Definition at line 140 of file FUResourceBroker.h.
Referenced by exportParameters(), FUResourceBroker(), and instanceNumber().
|
static |
Definition at line 111 of file FUResourceBroker.h.
|
private |
Definition at line 132 of file FUResourceBroker.h.
Referenced by actionPerformed(), exportParameters(), FUResourceBroker(), I2O_EVM_LUMISECTION_Callback(), I2O_FU_DATA_DISCARD_Callback(), I2O_FU_DQM_DISCARD_Callback(), and I2O_FU_TAKE_Callback().
|
static |
Definition at line 114 of file FUResourceBroker.h.
|
static |
Definition at line 113 of file FUResourceBroker.h.
|
static |
Definition at line 112 of file FUResourceBroker.h.
|
private |
Definition at line 138 of file FUResourceBroker.h.
Referenced by exportParameters(), and FUResourceBroker().