CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/EventFilter/ResourceBroker/src/Ready.cc

Go to the documentation of this file.
00001 
00006 #include "EventFilter/ResourceBroker/interface/SharedResources.h"
00007 #include "EventFilter/ResourceBroker/interface/RBStateMachine.h"
00008 
00009 using std::string;
00010 using namespace evf::rb_statemachine;
00011 
00012 // entry action, state notification, state action
00013 //______________________________________________________________________________
00014 void Ready::do_entryActionWork() {
00015 }
00016 
00017 void Ready::do_stateNotify() {
00018         SharedResourcesPtr_t res = outermost_context().getSharedResources();
00019         LOG4CPLUS_INFO(res->log_, "--> ResourceBroker: NEW STATE: " << stateName());
00020         outermost_context().setExternallyVisibleState(stateName());
00021         outermost_context().setInternalStateName(stateName());
00022         // notify RCMS of the new state
00023         outermost_context().rcmsStateChangeNotify();
00024 }
00025 
00026 // construction / destruction
00027 //______________________________________________________________________________
00028 Ready::Ready(my_context c) :
00029         my_base(c) {
00030         safeEntryAction();
00031 }
00032 
00033 Ready::~Ready() {
00034         safeExitAction();
00035 }
00036 
00037 // exit action, state name, move to failed state
00038 //______________________________________________________________________________
00039 void Ready::do_exitActionWork() {
00040 }
00041 
00042 string Ready::do_stateName() const {
00043         return string("Ready");
00044 }
00045 
00046 void Ready::do_moveToFailedState(xcept::Exception& exception) const {
00047 }