18 #include "xcept/tools.h"
23 Processing::Processing( my_context
c ): my_base(c)
31 outermost_context().updateHistory( tr );
32 outermost_context().setExternallyVisibleState(
"Enabled" );
33 outermost_context().getNotifier()->reportNewState(
"Enabled" );
44 outermost_context().updateHistory( tr );
49 return std::string(
"Processing" );
54 outermost_context().getSharedResources()->alarmHandler_->moveToFailedState( exception );
59 outermost_context().unconsumed_event( request );
65 static unsigned int noFragmentCount = 0;
67 FragmentStore* fragmentStore = outermost_context().getFragmentStore();
76 uint32_t
runNumber = outermost_context().getSharedResources()->configuration_->getRunNumber();
79 catch(stor::exception::RunNumberMismatch &
e)
82 outermost_context().getSharedResources()->
85 outermost_context().getEventDistributor()->addEventToRelevantQueues(frag);
86 outermost_context().getSharedResources()->discardManager_->sendDiscardMessage(frag);
93 if ( noFragmentCount >= 100 )
108 outermost_context().getSharedResources()->statisticsReporter_->
109 getThroughputMonitorCollection();
120 outermost_context().getSharedResources()->configuration_->getWorkerThreadParams();
122 outermost_context().getFragmentStore()->
127 outermost_context().getSharedResources()->discardManager_->sendDiscardMessage(staleEvent);
128 outermost_context().getEventDistributor()->addEventToRelevantQueues(staleEvent);
130 outermost_context().getEventDistributor()->checkForStaleConsumers();
void logEndRunRequest(const EndRun &request)
std::string stateName() const
void setFragmentStoreSize(unsigned int size)
const bool addFragment(I2OChain &)
void noFragmentToProcess() const
void assertRunNumber(uint32_t runNumber)
void setFragmentStoreMemoryUsed(size_t memoryUsed)
virtual void do_entryActionWork()
utils::Duration_t staleFragmentTimeOut_
size_t memoryUsed() const
virtual std::string do_stateName() const
virtual void do_exitActionWork()
unsigned int size() const
virtual void do_moveToFailedState(xcept::Exception &exception) const
virtual void do_processI2OFragment(I2OChain &frag) const
virtual void do_noFragmentToProcess() const