#include <EC_ProxySupplier.h>
Inheritance diagram for TAO_EC_ProxyPushSupplier:
Public Types | |
typedef RtecEventChannelAdmin::ProxyPushSupplier | Interface |
typedef RtecEventChannelAdmin::ProxyPushSupplier_var | _var_type |
typedef RtecEventChannelAdmin::ProxyPushSupplier_ptr | _ptr_type |
Public Member Functions | |
TAO_EC_ProxyPushSupplier (TAO_EC_Event_Channel_Base *event_channel, int validate_connection) | |
Constructor... | |
virtual | ~TAO_EC_ProxyPushSupplier (void) |
Destructor... | |
virtual void | disconnect_push_supplier (ACE_ENV_SINGLE_ARG_DECL)=0 |
Disconnect this from. | |
CORBA::Boolean | is_connected (void) const |
Return 0 if no consumer is connected... | |
CORBA::Boolean | is_suspended (void) const |
Return 1 if it is suspended. | |
RtecEventComm::PushConsumer_ptr | consumer (void) const |
const RtecEventChannelAdmin::ConsumerQOS & | subscriptions (void) const |
The QoS (subscription) used to connect to the EC. | |
virtual void | connected (TAO_EC_ProxyPushConsumer *consumer ACE_ENV_ARG_DECL) |
virtual void | reconnected (TAO_EC_ProxyPushConsumer *consumer ACE_ENV_ARG_DECL) |
virtual void | disconnected (TAO_EC_ProxyPushConsumer *consumer ACE_ENV_ARG_DECL) |
virtual void | connected (TAO_EC_ProxyPushSupplier *supplier ACE_ENV_ARG_DECL) |
virtual void | reconnected (TAO_EC_ProxyPushSupplier *supplier ACE_ENV_ARG_DECL) |
virtual void | disconnected (TAO_EC_ProxyPushSupplier *supplier ACE_ENV_ARG_DECL) |
virtual void | shutdown (ACE_ENV_SINGLE_ARG_DECL) |
The event channel is shutting down. | |
void | push_to_consumer (RtecEventComm::PushConsumer_ptr consumer, const RtecEventComm::EventSet &event ACE_ENV_ARG_DECL) |
void | reactive_push_to_consumer (RtecEventComm::PushConsumer_ptr consumer, const RtecEventComm::EventSet &event ACE_ENV_ARG_DECL) |
CORBA::Boolean | consumer_non_existent (CORBA::Boolean_out disconnected ACE_ENV_ARG_DECL) |
CORBA::ULong | _incr_refcnt (void) |
Increment and decrement the reference count. | |
CORBA::ULong | _decr_refcnt (void) |
virtual int | filter (const RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info ACE_ENV_ARG_DECL) |
virtual int | filter_nocopy (RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info ACE_ENV_ARG_DECL) |
virtual void | push (const RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info ACE_ENV_ARG_DECL) |
virtual void | push_nocopy (RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info ACE_ENV_ARG_DECL) |
virtual void | clear (void) |
virtual CORBA::ULong | max_event_size (void) const |
Returns the maximum size of the events pushed by this filter. | |
virtual int | can_match (const RtecEventComm::EventHeader &header) const |
virtual int | add_dependencies (const RtecEventComm::EventHeader &header, const TAO_EC_QOS_Info &qos_info ACE_ENV_ARG_DECL) |
Public Attributes | |
virtual void virtual activate(RtecEventChannelAdmin::ProxyPushSupplier_ptr &proxy ACE_ENV_ARG_DECL) ACE_THROW_SPEC((CORBA voi | deactivate )(ACE_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC(()) |
Deactivate from the POA. | |
Protected Member Functions | |
void | consumer (RtecEventComm::PushConsumer_ptr consumer) |
void | consumer_i (RtecEventComm::PushConsumer_ptr consumer) |
void | cleanup_i (void) |
Release the child and the consumer. | |
Protected Attributes | |
void suspend_connection_i(ACE_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC((CORBA void resume_connection_i(ACE_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC((CORBA void suspend_connection_locked(ACE_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC((CORBA void resume_connection_locked(ACE_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC((CORBA CORBA::Boolea | is_connected_i )(void) const |
The private version (without locking) of is_connected(). | |
TAO_EC_Event_Channel_Base * | event_channel_ |
The Event Channel that owns this object. | |
ACE_Lock * | lock_ |
The locking strategy. | |
CORBA::ULong | refcount_ |
The reference count. | |
RtecEventComm::PushConsumer_var | consumer_ |
The consumer.... | |
CORBA::Boolean | suspended_ |
Is this consumer suspended? | |
RtecEventChannelAdmin::ConsumerQOS | qos_ |
The subscription and QoS information... | |
PortableServer::POA_var | default_POA_ |
Store the default POA. | |
TAO_EC_Filter * | child_ |
The filter object. | |
int | consumer_validate_connection_ |
Validate the connection to consumer on connect. | |
Private Member Functions | |
virtual void | refcount_zero_hook (void) |
Template method hooks. | |
virtual void | pre_dispatch_hook (RtecEventComm::EventSet &ACE_ENV_ARG_DECL) |
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.
|
|
|
|
|
|
|
Constructor...
|
|
Destructor...
|
|
|
|
Increment and decrement the reference count.
|
|
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. |
|
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. |
|
Release the child and the consumer.
|
|
Clear any saved state, must reset and assume no events have been received. Implements TAO_EC_Filter. |
|
Usually implemented as no-ops, but some configurations may require this methods. |
|
Concrete implementations can use this methods to keep track of the suppliers that publish its events. |
|
Set the consumer, used by some implementations to change the policies used when invoking operations on the consumer. |
|
Return the consumer object reference. It returns nil() if it has not connected yet. |
|
|
|
Invoke the _non_existent() pseudo-operation on the consumer. If it is disconnected then it returns true and sets the <disconnected> flag. |
|
Disconnect this from.
|
|
|
|
|
|
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. |
|
Implements TAO_EC_Filter. |
|
Return 0 if no consumer is connected...
|
|
Return 1 if it is suspended.
|
|
Returns the maximum size of the events pushed by this filter.
Implements TAO_EC_Filter. |
|
|
|
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. |
|
Implements TAO_EC_Filter. |
|
These methods take consumer argument because during the time the filters have been processing the event, this proxy's consumer may have changed. |
|
|
|
|
|
|
|
Template method hooks.
|
|
The event channel is shutting down.
|
|
The QoS (subscription) used to connect to the EC.
|
|
The filter object.
|
|
The consumer....
|
|
Validate the connection to consumer on connect.
|
|
Deactivate from the POA.
|
|
Store the default POA.
|
|
The Event Channel that owns this object.
|
|
The private version (without locking) of is_connected().
|
|
The locking strategy.
|
|
The subscription and QoS information...
|
|
The reference count.
|
|
Is this consumer suspended?
|