1 #ifndef FURESOURCEBROKER_H
2 #define FURESOURCEBROKER_H 1
11 #include "xdaq/Application.h"
12 #include "xdaq/NamespaceURI.h"
14 #include "xdata/InfoSpace.h"
15 #include "xdata/String.h"
16 #include "xdata/Boolean.h"
17 #include "xdata/UnsignedInteger32.h"
18 #include "xdata/Double.h"
20 #include "toolbox/mem/Reference.h"
21 #include "toolbox/fsm/exception/Exception.h"
22 #include "toolbox/BSem.h"
24 #include "interface/shared/frl_header.h"
25 #include "interface/shared/fed_header.h"
26 #include "interface/shared/fed_trailer.h"
30 #include <semaphore.h>
41 public xdata::ActionListener
63 bool enabling(toolbox::task::WorkLoop* wl);
64 bool stopping(toolbox::task::WorkLoop* wl);
65 bool halting(toolbox::task::WorkLoop* wl);
95 bool watching(toolbox::task::WorkLoop* wl);
113 double deltaT(
const struct timeval *start,
const struct timeval *
end);
xdata::String clientPrcIds_
xdata::UnsignedInteger32 nbLostEvents_
static const int SENT_ERREVENT_ERROR_SHIFT
FUResourceBroker(xdaq::ApplicationStub *s)
xdata::UnsignedInteger32 monSleepSec_
xdata::UnsignedInteger32 nbDiscardedEvents_
xdata::UnsignedInteger32 nbReceivedEvents_
xdata::UnsignedInteger32 nbPendingSMDqmDiscards_
xdata::UnsignedInteger32 nbPendingRequests_
xdata::UnsignedInteger32 nbSentDqmEvents_
xdata::UnsignedInteger32 nbRawCells_
virtual ~FUResourceBroker()
void I2O_FU_TAKE_Callback(toolbox::mem::Reference *bufRef)
xdata::UnsignedInteger32 nbTimeoutsWithoutEvent_
void customWebPage(xgi::Input *in, xgi::Output *out)
xdata::UnsignedInteger32 nbSentEvents_
xdata::UnsignedInteger32 nbSentErrorEvents_
uint64_t sumOfSquaresLast_
void configureResources()
xdata::UnsignedInteger32 buInstance_
void startMonitoringWorkLoop()
xdata::UnsignedInteger32 nbDataDiscardReceived_
bool watching(toolbox::task::WorkLoop *wl)
xdata::String reasonForFailed_
static const int LOST_ERROR_SHIFT
void I2O_FU_DATA_DISCARD_Callback(toolbox::mem::Reference *bufRef)
double deltaT(const struct timeval *start, const struct timeval *end)
unsigned int instanceNumber() const
xdata::Boolean segmentationMode_
void I2O_FU_DQM_DISCARD_Callback(toolbox::mem::Reference *bufRef)
xdata::UnsignedInteger32 nbDqmDiscardReceived_
xdata::UnsignedInteger32 nbDataErrors_
xdata::UnsignedInteger32 doDumpEvents_
xdata::UnsignedInteger32 nbClients_
xdata::UnsignedInteger32 nbProcessedEvents_
bool halting(toolbox::task::WorkLoop *wl)
xdata::UnsignedInteger32 runNumber_
bool configuring(toolbox::task::WorkLoop *wl)
xdata::UnsignedInteger32 smInstance_
toolbox::task::WorkLoop * wlMonitoring_
bool stopping(toolbox::task::WorkLoop *wl)
xdata::Boolean doFedIdCheck_
xdata::UnsignedInteger32 nbTakeReceived_
xdata::UnsignedInteger32 timeOutSec_
xdata::UnsignedInteger32 rawCellSize_
xdata::UnsignedInteger32 nbRecoCells_
xdata::UnsignedInteger32 nbDqmCells_
bool enabling(toolbox::task::WorkLoop *wl)
static const int TIMEOUT_EVENT_ERROR_SHIFT
void startWatchingWorkLoop()
xdata::UnsignedInteger32 nbAllocatedEvents_
void actionPerformed(xdata::Event &e)
xdata::UnsignedInteger32 nbTimeoutsWithEvent_
xdata::Boolean processKillerEnabled_
xdata::UnsignedInteger32 nbPendingSMDiscards_
FUResourceTable * resourceTable_
xdata::UnsignedInteger32 deltaSumOfSizes_
xdata::Boolean useEvmBoard_
xdata::UnsignedInteger32 dqmCellSize_
unsigned long long uint64_t
xdata::Double deltaSumOfSquares_
static const int CRC_ERROR_SHIFT
xoap::MessageReference fsmCallback(xoap::MessageReference msg)
static const int TIMEOUT_NOEVENT_ERROR_SHIFT
xdata::String smClassName_
xdata::UnsignedInteger32 deltaN_
xdata::UnsignedInteger32 recoCellSize_
xdata::String buClassName_
xdata::UnsignedInteger32 watchSleepSec_
xdata::UnsignedInteger32 shmResourceTableTimeout_
void I2O_EVM_LUMISECTION_Callback(toolbox::mem::Reference *bufRef)
bool monitoring(toolbox::task::WorkLoop *wl)
toolbox::mem::Pool * i2oPool_
xdata::Double throughput_
toolbox::task::WorkLoop * wlWatching_
xdata::Boolean doDropEvents_
xdata::UnsignedInteger32 doCrcCheck_
static const int DATA_ERROR_SHIFT
xdata::UnsignedInteger32 instance_
toolbox::task::ActionSignature * asMonitoring_
xdata::UnsignedInteger32 nbCrcErrors_
void webPageRequest(xgi::Input *in, xgi::Output *out)
toolbox::task::ActionSignature * asWatching_
xdata::UnsignedInteger32 nbAllocateSent_
struct timeval monStartTime_
xdata::UnsignedInteger32 dataErrorFlag_