#include <WrapperNotifier.h>
Public Member Functions | |
void | reportNewState (const std::string &stateName) |
WrapperNotifier (xdaq::Application *app) | |
Private Attributes | |
xdaq::Application * | app_ |
xdaq2rc::RcmsStateNotifier | rcmsNotifier_ |
Notifier implementation used by StorageManager
Definition at line 23 of file WrapperNotifier.h.
WrapperNotifier::WrapperNotifier | ( | xdaq::Application * | app | ) |
Constructor
Definition at line 11 of file WrapperNotifier.cc.
References rcmsNotifier_.
: rcmsNotifier_( xdaq2rc::RcmsStateNotifier( app->getApplicationLogger(), app->getApplicationDescriptor(), app->getApplicationContext() ) ), app_( app ) { xdata::InfoSpace *ispace = app->getApplicationInfoSpace(); ispace->fireItemAvailable( "rcmsStateListener", rcmsNotifier_.getRcmsStateListenerParameter() ); ispace->fireItemAvailable( "foundRcmsStateListener", rcmsNotifier_.getFoundRcmsStateListenerParameter() ); rcmsNotifier_.findRcmsStateListener(); rcmsNotifier_.subscribeToChangesInRcmsStateListener( ispace ); }
void WrapperNotifier::reportNewState | ( | const std::string & | stateName | ) | [virtual] |
Report new state to RCMS
Implements stor::Notifier.
Definition at line 32 of file WrapperNotifier.cc.
References rcmsNotifier_.
{ rcmsNotifier_.stateChanged( stateName, std::string( "StorageManager is now " ) + stateName ); }
xdaq::Application* stor::WrapperNotifier::app_ [private] |
Definition at line 41 of file WrapperNotifier.h.
xdaq2rc::RcmsStateNotifier stor::WrapperNotifier::rcmsNotifier_ [private] |
Definition at line 40 of file WrapperNotifier.h.
Referenced by reportNewState(), and WrapperNotifier().