fesa::NotificationConsumer Class Reference

this class receives notification messages from the NotificationProducer and uses the SubscritionTreeManager class to nofity the clients More...

#include <NotificationConsumer.h>

Inheritance diagram for fesa::NotificationConsumer:
fesa::Thread

List of all members.

Static Public Member Functions

static NotificationConsumergetInstance (SubscriptionTreeManager &subscriptionTreeManager)
 Use this method to either get the existing singleton object, or to create a new one, if not existing.

Private Member Functions

void run ()
 This method listens in a nonblocking mode to the msg queue. It runs in a seperate thread.
 NotificationConsumer ()
 private constructor
 NotificationConsumer (const std::string &queueName, SubscriptionTreeManager &subscriptionTreeManager)
 NotificationConsumer (const NotificationConsumer &other)
 copy constructor
NotificationConsumeroperator= (const NotificationConsumer &other)
 ~NotificationConsumer ()

Static Private Member Functions

static void releaseInstance ()
 releases the singleton instance .. only done by the Abstract Equipment, therefor ptivat + friend

Private Attributes

SubscriptionTreeManagersubscriptionTreeManager_
AbstractMsgQueuemsgQueuePtr_
 pointer to the queue to listen at

Static Private Attributes

static NotificationConsumertheInstance_ = NULL
 instance of the singleton object

Friends

class AbstractEquipment

Detailed Description

this class receives notification messages from the NotificationProducer and uses the SubscritionTreeManager class to nofity the clients

Definition at line 22 of file NotificationConsumer.h.


Constructor & Destructor Documentation

fesa::NotificationConsumer::NotificationConsumer (  )  [private]

private constructor

Referenced by getInstance().

fesa::NotificationConsumer::NotificationConsumer ( const std::string &  queueName,
SubscriptionTreeManager subscriptionTreeManager 
) [private]
fesa::NotificationConsumer::NotificationConsumer ( const NotificationConsumer other  )  [private]

copy constructor

fesa::NotificationConsumer::~NotificationConsumer (  )  [private]

Definition at line 60 of file NotificationConsumer.cpp.


Member Function Documentation

NotificationConsumer * fesa::NotificationConsumer::getInstance ( SubscriptionTreeManager subscriptionTreeManager  )  [static]

Use this method to either get the existing singleton object, or to create a new one, if not existing.

Returns:
Ref to the Notification Consumer instance

Definition at line 64 of file NotificationConsumer.cpp.

References fesa::AbstractEquipment::getEquipmentName(), NotificationConsumer(), and theInstance_.

Referenced by NotificationConsumer(), run(), and fesa::AbstractServerController::start().

NotificationConsumer& fesa::NotificationConsumer::operator= ( const NotificationConsumer other  )  [private]
void fesa::NotificationConsumer::releaseInstance (  )  [static, private]

releases the singleton instance .. only done by the Abstract Equipment, therefor ptivat + friend

Definition at line 74 of file NotificationConsumer.cpp.

References theInstance_.

void fesa::NotificationConsumer::run (  )  [private, virtual]

Friends And Related Function Documentation

friend class AbstractEquipment [friend]

Definition at line 67 of file NotificationConsumer.h.


Member Data Documentation

pointer to the queue to listen at

Definition at line 37 of file NotificationConsumer.h.

Referenced by NotificationConsumer(), and run().

Definition at line 34 of file NotificationConsumer.h.

Referenced by run().

instance of the singleton object

Definition at line 40 of file NotificationConsumer.h.

Referenced by getInstance(), and releaseInstance().


The documentation for this class was generated from the following files:

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1