TAO_RTEvent
2.2.3
|
ProxyPushSupplier. More...
#include <EC_ProxySupplier.h>
Public Types | |
typedef RtecEventChannelAdmin::ProxyPushSupplier | Interface |
typedef RtecEventChannelAdmin::ProxyPushSupplier_var | _var_type |
typedef RtecEventChannelAdmin::ProxyPushSupplier_ptr | _ptr_type |
Public Types inherited from TAO_EC_Filter | |
typedef TAO_EC_Filter * | value_type |
typedef TAO_EC_Filter *const | const_value_type |
typedef const_value_type * | ChildrenIterator |
Public Member Functions | |
TAO_EC_ProxyPushSupplier (TAO_EC_Event_Channel_Base *event_channel, int validate_connection) | |
Constructor... More... | |
virtual | ~TAO_EC_ProxyPushSupplier (void) |
Destructor... More... | |
virtual void | activate (RtecEventChannelAdmin::ProxyPushSupplier_ptr &proxy)=0 |
Activate in the POA. More... | |
virtual void | deactivate (void) throw () |
Deactivate from the POA. More... | |
virtual void | disconnect_push_supplier ()=0 |
Disconnect this from. More... | |
CORBA::Boolean | is_connected (void) const |
Return false if no consumer is connected... More... | |
CORBA::Boolean | is_suspended (void) const |
Return true if it is suspended. More... | |
RtecEventComm::PushConsumer_ptr | consumer (void) const |
const RtecEventChannelAdmin::ConsumerQOS & | subscriptions (void) const |
The QoS (subscription) used to connect to the EC. More... | |
virtual void | connected (TAO_EC_ProxyPushConsumer *consumer) |
virtual void | reconnected (TAO_EC_ProxyPushConsumer *consumer) |
virtual void | disconnected (TAO_EC_ProxyPushConsumer *consumer) |
virtual void | connected (TAO_EC_ProxyPushSupplier *supplier) |
virtual void | reconnected (TAO_EC_ProxyPushSupplier *supplier) |
virtual void | disconnected (TAO_EC_ProxyPushSupplier *supplier) |
virtual void | shutdown (void) |
The event channel is shutting down. More... | |
void | push_to_consumer (RtecEventComm::PushConsumer_ptr consumer, const RtecEventComm::EventSet &event) |
void | reactive_push_to_consumer (RtecEventComm::PushConsumer_ptr consumer, const RtecEventComm::EventSet &event) |
CORBA::Boolean | consumer_non_existent (CORBA::Boolean_out disconnected) |
CORBA::ULong | _incr_refcnt (void) |
Increment and decrement the reference count. More... | |
CORBA::ULong | _decr_refcnt (void) |
virtual int | filter (const RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info) |
virtual int | filter_nocopy (RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info) |
virtual void | push (const RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info) |
virtual void | push_nocopy (RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info) |
virtual void | clear (void) |
virtual CORBA::ULong | max_event_size (void) const |
Returns the maximum size of the events pushed by this filter. More... | |
virtual int | can_match (const RtecEventComm::EventHeader &header) const |
virtual int | add_dependencies (const RtecEventComm::EventHeader &header, const TAO_EC_QOS_Info &qos_info) |
Public Member Functions inherited from TAO_EC_Filter | |
TAO_EC_Filter (void) | |
constructor... More... | |
virtual | ~TAO_EC_Filter (void) |
destructor... More... | |
TAO_EC_Filter * | parent (void) const |
Obtain the parent of this filter. More... | |
void | adopt_child (TAO_EC_Filter *child) |
Become the parent of child. More... | |
virtual ChildrenIterator | begin (void) const |
virtual ChildrenIterator | end (void) const |
virtual int | size (void) const |
virtual void | get_qos_info (TAO_EC_QOS_Info &qos_info) |
Protected Member Functions | |
void | consumer (RtecEventComm::PushConsumer_ptr consumer) |
void | consumer_i (RtecEventComm::PushConsumer_ptr consumer) |
void | suspend_connection_i (void) |
void | resume_connection_i (void) |
void | suspend_connection_locked (void) |
void | resume_connection_locked (void) |
CORBA::Boolean | is_connected_i (void) const |
The private version (without locking) of is_connected(). More... | |
void | cleanup_i (void) |
Release the child and the consumer. More... | |
Protected Attributes | |
TAO_EC_Event_Channel_Base * | event_channel_ |
The Event Channel that owns this object. More... | |
ACE_Lock * | lock_ |
The locking strategy. More... | |
CORBA::ULong | refcount_ |
The reference count. More... | |
RtecEventComm::PushConsumer_var | consumer_ |
The consumer.... More... | |
CORBA::Boolean | suspended_ |
Is this consumer suspended? More... | |
RtecEventChannelAdmin::ConsumerQOS | qos_ |
The subscription and QoS information... More... | |
PortableServer::POA_var | default_POA_ |
Store the default POA. More... | |
TAO_EC_Filter * | child_ |
The filter object. More... | |
int | consumer_validate_connection_ |
Validate the connection to consumer on connect. More... | |
Private Member Functions | |
virtual void | refcount_zero_hook (void) |
Template method hooks. More... | |
virtual void | pre_dispatch_hook (RtecEventComm::EventSet &) |
virtual PortableServer::ObjectId | object_id (void)=0 |
Additional Inherited Members | |
Static Public Member Functions inherited from TAO_EC_Filter | |
static int | matches (const RtecEventComm::EventHeader &rhs, const RtecEventComm::EventHeader &lhs) |
ProxyPushSupplier.
Implement the RtecEventChannelAdmin::ProxyPushSupplier interface, remember that this class is used to communicate with a PushConsumer, so, in effect, this is the ambassador for a consumer inside the event channel.
It does not assume ownership of the TAO_EC_Dispatching object. It makes a copy of the ConsumerQOS and the consumer object reference.
Locking is strategized, the event channel acts as a factory for the locking strategies.
typedef RtecEventChannelAdmin::ProxyPushSupplier_ptr TAO_EC_ProxyPushSupplier::_ptr_type |
typedef RtecEventChannelAdmin::ProxyPushSupplier_var TAO_EC_ProxyPushSupplier::_var_type |
TAO_EC_ProxyPushSupplier::TAO_EC_ProxyPushSupplier | ( | TAO_EC_Event_Channel_Base * | event_channel, |
int | validate_connection | ||
) |
Constructor...
|
virtual |
Destructor...
CORBA::ULong TAO_EC_ProxyPushSupplier::_decr_refcnt | ( | void | ) |
CORBA::ULong TAO_EC_ProxyPushSupplier::_incr_refcnt | ( | void | ) |
Increment and decrement the reference count.
|
pure virtual |
Activate in the POA.
Implemented in TAO_EC_Default_ProxyPushSupplier.
|
virtual |
This is used for computing the scheduling dependencies:
Leaf filters check if the header could be matched, similar to the can_match() method; if it does they return 1, and 0 otherwise. Intermediate nodes always return 0.
This is used to build precise dependencies between the suppliers and the leaf of the filters that accept that event. Notice that only the nodes doing scheduling recurse through the list, so in configurations that do no require scheduling the recursion stops fairly soon.
Implements TAO_EC_Filter.
|
virtual |
Returns 0 if an event with that header could never be accepted. This can used by the suppliers to filter out consumers that couldn't possibly be interested in their events. The rt_info and
Implements TAO_EC_Filter.
|
protected |
Release the child and the consumer.
|
virtual |
Clear any saved state, must reset and assume no events have been received.
Implements TAO_EC_Filter.
|
virtual |
Concrete implementations can use this methods to keep track of the suppliers that publish its events.
|
virtual |
Usually implemented as no-ops, but some configurations may require this methods.
RtecEventComm::PushConsumer_ptr TAO_EC_ProxyPushSupplier::consumer | ( | void | ) | const |
Return the consumer object reference. It returns nil() if it has not connected yet.
|
protected |
Set the consumer, used by some implementations to change the policies used when invoking operations on the consumer.
|
protected |
CORBA::Boolean TAO_EC_ProxyPushSupplier::consumer_non_existent | ( | CORBA::Boolean_out | disconnected | ) |
Invoke the _non_existent() pseudo-operation on the consumer. If it is disconnected then it returns true and sets the <disconnected> flag.
|
virtual |
Deactivate from the POA.
|
pure virtual |
Disconnect this from.
Implemented in TAO_EC_Default_ProxyPushSupplier, and TAO_EC_TPC_ProxyPushSupplier.
|
virtual |
|
virtual |
|
virtual |
Filter this event, returns 1 if the event is accepted, 0 otherwise. Notice that there are two versions of the method, if the event is not const then filter can take ownership of the event.
Implements TAO_EC_Filter.
|
virtual |
Implements TAO_EC_Filter.
CORBA::Boolean TAO_EC_ProxyPushSupplier::is_connected | ( | void | ) | const |
Return false if no consumer is connected...
|
protected |
The private version (without locking) of is_connected().
CORBA::Boolean TAO_EC_ProxyPushSupplier::is_suspended | ( | void | ) | const |
Return true if it is suspended.
|
virtual |
Returns the maximum size of the events pushed by this filter.
Implements TAO_EC_Filter.
|
privatepure virtual |
Implemented in TAO_EC_Default_ProxyPushSupplier.
|
privatevirtual |
|
virtual |
This is called by the children when they accept an event and which to pass it up. Notice that there are two versions of the method, if the event is not const then filter can take ownership of the event.
Implements TAO_EC_Filter.
|
virtual |
Implements TAO_EC_Filter.
void TAO_EC_ProxyPushSupplier::push_to_consumer | ( | RtecEventComm::PushConsumer_ptr | consumer, |
const RtecEventComm::EventSet & | event | ||
) |
Pushes to the consumer, verifies that it is connected and that it is not suspended. These methods take consumer argument because during the time the filters have been processing the event, this proxy's consumer may have changed.
void TAO_EC_ProxyPushSupplier::reactive_push_to_consumer | ( | RtecEventComm::PushConsumer_ptr | consumer, |
const RtecEventComm::EventSet & | event | ||
) |
|
virtual |
|
virtual |
|
privatevirtual |
Template method hooks.
|
protected |
|
protected |
|
virtual |
The event channel is shutting down.
const RtecEventChannelAdmin::ConsumerQOS & TAO_EC_ProxyPushSupplier::subscriptions | ( | void | ) | const |
The QoS (subscription) used to connect to the EC.
|
protected |
|
protected |
|
protected |
The filter object.
|
protected |
The consumer....
|
protected |
Validate the connection to consumer on connect.
|
protected |
Store the default POA.
|
protected |
The Event Channel that owns this object.
|
protected |
The locking strategy.
|
protected |
The subscription and QoS information...
|
protected |
The reference count.
|
protected |
Is this consumer suspended?