17 #include "xcept/tools.h"
22 Processing::Processing( my_context
c ): my_base(c)
30 outermost_context().updateHistory( tr );
31 outermost_context().setExternallyVisibleState(
"Enabled" );
32 outermost_context().getNotifier()->reportNewState(
"Enabled" );
43 outermost_context().updateHistory( tr );
48 return std::string(
"Processing" );
53 outermost_context().getSharedResources()->moveToFailedState( exception );
58 outermost_context().unconsumed_event( request );
64 static unsigned int noFragmentCount = 0;
66 FragmentStore* fragmentStore = outermost_context().getFragmentStore();
75 uint32_t
runNumber = outermost_context().getSharedResources()->configuration_->getRunNumber();
78 catch(stor::exception::RunNumberMismatch &e)
81 outermost_context().getSharedResources()->statisticsReporter_->
84 outermost_context().getEventDistributor()->addEventToRelevantQueues(frag);
85 outermost_context().getSharedResources()->discardManager_->sendDiscardMessage(frag);
92 if ( noFragmentCount >= 100 )
107 outermost_context().getSharedResources()->statisticsReporter_->
108 getThroughputMonitorCollection();
119 outermost_context().getSharedResources()->configuration_->getWorkerThreadParams();
121 outermost_context().getFragmentStore()->
126 outermost_context().getSharedResources()->discardManager_->sendDiscardMessage(staleEvent);
127 outermost_context().getEventDistributor()->addEventToRelevantQueues(staleEvent);
129 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