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 Attributes
stor::WrapperNotifier Class Reference

#include <WrapperNotifier.h>

Inheritance diagram for stor::WrapperNotifier:
stor::Notifier

Public Member Functions

void reportNewState (const std::string &stateName)
 
 WrapperNotifier (xdaq::Application *app)
 
- Public Member Functions inherited from stor::Notifier
 Notifier ()
 
virtual ~Notifier ()
 

Private Attributes

xdaq::Application * app_
 
xdaq2rc::RcmsStateNotifier rcmsNotifier_
 

Detailed Description

Notifier implementation used by StorageManager

Author:
mommsen
Revision:
1.9.12.1
Date:
2011/03/07 11:33:04

Definition at line 23 of file WrapperNotifier.h.

Constructor & Destructor Documentation

WrapperNotifier::WrapperNotifier ( xdaq::Application *  app)

Constructor

Definition at line 11 of file WrapperNotifier.cc.

References rcmsNotifier_.

11  :
13  xdaq2rc::RcmsStateNotifier(
14  app->getApplicationLogger(),
15  app->getApplicationDescriptor(),
16  app->getApplicationContext()
17  )
18  ),
19  app_( app )
20 {
21  xdata::InfoSpace *ispace = app->getApplicationInfoSpace();
22 
23  ispace->fireItemAvailable( "rcmsStateListener",
24  rcmsNotifier_.getRcmsStateListenerParameter() );
25  ispace->fireItemAvailable( "foundRcmsStateListener",
26  rcmsNotifier_.getFoundRcmsStateListenerParameter() );
27  rcmsNotifier_.findRcmsStateListener();
28  rcmsNotifier_.subscribeToChangesInRcmsStateListener( ispace );
29 }
xdaq::Application * app_
xdaq2rc::RcmsStateNotifier rcmsNotifier_

Member Function Documentation

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_.

33 {
34  rcmsNotifier_.stateChanged(
35  stateName,
36  std::string( "StorageManager is now " ) + stateName
37  );
38 }
xdaq2rc::RcmsStateNotifier rcmsNotifier_

Member Data Documentation

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