CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/EventFilter/StorageManager/src/WrapperNotifier.cc

Go to the documentation of this file.
00001 // $Id: WrapperNotifier.cc,v 1.5 2011/03/07 15:31:32 mommsen Exp $
00003 
00004 #include "EventFilter/StorageManager/interface/WrapperNotifier.h"
00005 
00006 #include "xdata/InfoSpace.h"
00007 
00008 
00009 using namespace stor;
00010 
00011 WrapperNotifier::WrapperNotifier( xdaq::Application* app ):
00012   rcmsNotifier_(
00013     xdaq2rc::RcmsStateNotifier(
00014       app->getApplicationLogger(),
00015       app->getApplicationDescriptor(),
00016       app->getApplicationContext()
00017     )
00018   ),
00019   app_( app )
00020 {
00021   xdata::InfoSpace *ispace = app->getApplicationInfoSpace();
00022   
00023   ispace->fireItemAvailable( "rcmsStateListener",
00024     rcmsNotifier_.getRcmsStateListenerParameter() );
00025   ispace->fireItemAvailable( "foundRcmsStateListener",
00026     rcmsNotifier_.getFoundRcmsStateListenerParameter() );
00027   rcmsNotifier_.findRcmsStateListener();
00028   rcmsNotifier_.subscribeToChangesInRcmsStateListener( ispace );
00029 }
00030 
00031 
00032 void WrapperNotifier::reportNewState( const std::string& stateName )
00033 {
00034   rcmsNotifier_.stateChanged(
00035     stateName,
00036     std::string( "StorageManager is now " ) + stateName
00037   );
00038 }
00039 
00040