CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
stor::Failed Class Reference

#include <StateMachine.h>

Inheritance diagram for stor::Failed:
stor::Operations

Public Member Functions

 Failed (my_context)
 
virtual ~Failed ()
 
- Public Member Functions inherited from stor::Operations
void moveToFailedState (xcept::Exception &exception) const
 
void noFragmentToProcess () const
 
 Operations ()
 
void processI2OFragment (I2OChain &frag) const
 
std::string stateName () const
 
virtual ~Operations ()=0
 

Private Member Functions

virtual void do_entryActionWork ()
 
virtual void do_exitActionWork ()
 
virtual void do_moveToFailedState (xcept::Exception &exception) const
 
virtual std::string do_stateName () const
 

Additional Inherited Members

- Protected Member Functions inherited from stor::Operations
virtual void do_noFragmentToProcess () const
 
virtual void do_processI2OFragment (I2OChain &frag) const
 
void safeEntryAction ()
 
void safeExitAction ()
 

Detailed Description

Failed state

Author:
mommsen
Revision:
1.11
Date:
2011/03/07 15:31:32

Definition at line 173 of file StateMachine.h.

Constructor & Destructor Documentation

Failed::Failed ( my_context  c)

Definition at line 31 of file Failed.cc.

References stor::Operations::safeEntryAction().

31  : my_base(c)
32 {
34 }
void safeEntryAction()
Definition: Operations.cc:77
Failed::~Failed ( )
virtual

Definition at line 45 of file Failed.cc.

References stor::Operations::safeExitAction().

46 {
48 }
void safeExitAction()
Definition: Operations.cc:108

Member Function Documentation

void Failed::do_entryActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 16 of file Failed.cc.

17 {
18  TransitionRecord tr( stateName(), true );
19  outermost_context().updateHistory( tr );
20  outermost_context().setExternallyVisibleState( "Failed" );
21  outermost_context().getNotifier()->reportNewState( "Failed" );
22 
23  // request that the streams that are currently configured in the disk
24  // writer be destroyed (this has the side effect of closing files).
25  // This should have been done by the Halting/Stopping entry actions,
26  // but if we Fail, we need to do it here. No harm if we do it twice.
27  outermost_context().getSharedResources()->
28  diskWriterResources_->requestStreamDestruction();
29 }
std::string stateName() const
Definition: Operations.cc:39
void Failed::do_exitActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 36 of file Failed.cc.

References stor::Operations::stateName().

37 {
38  TransitionRecord tr( stateName(), false );
39  outermost_context().updateHistory( tr );
40 
41  outermost_context().getSharedResources()->
42  statisticsReporter_->getStateMachineMonitorCollection().clearStatusMessage();
43 }
std::string stateName() const
Definition: Operations.cc:39
void Failed::do_moveToFailedState ( xcept::Exception &  exception) const
privatevirtual

Implements stor::Operations.

Definition at line 55 of file Failed.cc.

56 {
57  // nothing can be done here
58 }
string Failed::do_stateName ( ) const
privatevirtual

Implements stor::Operations.

Definition at line 50 of file Failed.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

51 {
52  return std::string( "Failed" );
53 }