#include <EC_ObserverStrategy.h>
Inheritance diagram for TAO_EC_Basic_ObserverStrategy
Public Types | |
typedef ACE_Map_Manager<RtecEventChannelAdmin::Observer_Handle, Observer_Entry,ACE_Null_Mutex> | Observer_Map |
typedef ACE_Map_Iterator<RtecEventChannelAdmin::Observer_Handle, Observer_Entry,ACE_Null_Mutex> | Observer_Map_Iterator |
typedef ACE_RB_Tree<RtecEventComm::EventHeader, int,Header_Compare,ACE_Null_Mutex> | Headers |
typedef ACE_RB_Tree_Iterator< RtecEventComm::EventHeader, int,Header_Compare,ACE_Null_Mutex> | HeadersIterator |
Public Methods | |
TAO_EC_Basic_ObserverStrategy (TAO_EC_Event_Channel* ec, ACE_Lock* lock) | |
Constructor. | |
virtual | ~TAO_EC_Basic_ObserverStrategy (void) |
Destructor. | |
virtual RtecEventChannelAdmin::Observer_Handle | append_observer (RtecEventChannelAdmin::Observer_ptr, CORBA::Environment &env) throw ( CORBA::SystemException, RtecEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR, RtecEventChannelAdmin::EventChannel::CANT_APPEND_OBSERVER) |
The basic methods to support the EC strategies. | |
virtual void | remove_observer ( RtecEventChannelAdmin::Observer_Handle, CORBA::Environment &env) throw ( CORBA::SystemException, RtecEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR, RtecEventChannelAdmin::EventChannel::CANT_REMOVE_OBSERVER) |
virtual void | connected (TAO_EC_ProxyPushConsumer*, CORBA::Environment&) |
Used by the EC to inform the ObserverStrategy that a Consumer has connected or disconnected from it. | |
virtual void | disconnected (TAO_EC_ProxyPushConsumer*, CORBA::Environment&) |
virtual void | connected (TAO_EC_ProxyPushSupplier*, CORBA::Environment&) |
Used by the EC to inform the ObserverStrategy that a Consumer has connected or disconnected from it. | |
virtual void | disconnected (TAO_EC_ProxyPushSupplier*, CORBA::Environment&) |
Protected Methods | |
void | fill_qos (RtecEventChannelAdmin::ConsumerQOS &qos, CORBA::Environment &env) |
Helper functions to compute the consumer and supplier QOS. | |
void | fill_qos (RtecEventChannelAdmin::SupplierQOS &qos, CORBA::Environment &env) |
Protected Attributes | |
TAO_EC_Event_Channel* | event_channel_ |
The event channel. | |
ACE_Lock* | lock_ |
The lock. | |
RtecEventChannelAdmin::Observer_Handle | handle_generator_ |
The handles are generated in sequential order, but are opaque to the client. | |
Observer_Map | observers_ |
Keep the set of Observers. |
This class simply keeps the information about the current list of observers, whenever the list of consumers and/or suppliers changes in queries the EC, computes the global subscription and/or publication list and sends the update message to all the observers.
|
|
|
|
|
|
|
|
|
Constructor.
|
|
Destructor.
|
|
The basic methods to support the EC strategies.
Reimplemented from TAO_EC_ObserverStrategy. |
|
Used by the EC to inform the ObserverStrategy that a Consumer has connected or disconnected from it.
Reimplemented from TAO_EC_ObserverStrategy. |
|
Used by the EC to inform the ObserverStrategy that a Consumer has connected or disconnected from it.
Reimplemented from TAO_EC_ObserverStrategy. |
|
Reimplemented from TAO_EC_ObserverStrategy. |
|
Reimplemented from TAO_EC_ObserverStrategy. |
|
|
|
Helper functions to compute the consumer and supplier QOS.
|
|
Reimplemented from TAO_EC_ObserverStrategy. |
|
The event channel.
|
|
The handles are generated in sequential order, but are opaque to the client.
|
|
The lock.
|
|
Keep the set of Observers.
|