CMS 3D CMS Logo

Public Member Functions | Private Attributes

stor::WrapperNotifier Class Reference

#include <WrapperNotifier.h>

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

List of all members.

Public Member Functions

void reportNewState (const std::string &stateName)
 WrapperNotifier (xdaq::Application *app)

Private Attributes

xdaq::Application * app_
xdaq2rc::RcmsStateNotifier rcmsNotifier_

Detailed Description

Notifier implementation used by StorageManager

Author:
mommsen
Revision:
1.10
Date:
2011/03/07 15:31:32

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

                                                      :
  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 );
}

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

{
  rcmsNotifier_.stateChanged(
    stateName,
    std::string( "StorageManager is now " ) + stateName
  );
}

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