CMS 3D CMS Logo

Public Member Functions | Private Member Functions

stor::Failed Class Reference

#include <StateMachine.h>

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

List of all members.

Public Member Functions

 Failed (my_context)
virtual ~Failed ()

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

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().

                            : my_base(c)
{
  safeEntryAction();
}
Failed::~Failed ( ) [virtual]

Definition at line 45 of file Failed.cc.

References stor::Operations::safeExitAction().


Member Function Documentation

void Failed::do_entryActionWork ( ) [private, virtual]

Implements stor::Operations.

Definition at line 16 of file Failed.cc.

{
  TransitionRecord tr( stateName(), true );
  outermost_context().updateHistory( tr );
  outermost_context().setExternallyVisibleState( "Failed" );
  outermost_context().getNotifier()->reportNewState( "Failed" );

  // request that the streams that are currently configured in the disk
  // writer be destroyed (this has the side effect of closing files).
  // This should have been done by the Halting/Stopping entry actions,
  // but if we Fail, we need to do it here. No harm if we do it twice.
  outermost_context().getSharedResources()->
    diskWriterResources_->requestStreamDestruction();
}
void Failed::do_exitActionWork ( ) [private, virtual]

Implements stor::Operations.

Definition at line 36 of file Failed.cc.

References stor::Operations::stateName().

{
  TransitionRecord tr( stateName(), false );
  outermost_context().updateHistory( tr );

  outermost_context().getSharedResources()->
    statisticsReporter_->getStateMachineMonitorCollection().clearStatusMessage();
}
void Failed::do_moveToFailedState ( xcept::Exception exception) const [private, virtual]

Implements stor::Operations.

Definition at line 55 of file Failed.cc.

{
  // nothing can be done here
}
string Failed::do_stateName ( ) const [private, virtual]

Implements stor::Operations.

Definition at line 50 of file Failed.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

{
  return std::string( "Failed" );
}