#include <EC_ProxyConsumer.h>
Inheritance diagram for TAO_EC_ProxyPushConsumer:
Public Types | |
typedef RtecEventChannelAdmin::ProxyPushConsumer | Interface |
typedef RtecEventChannelAdmin::ProxyPushConsumer_var | _var_type |
typedef RtecEventChannelAdmin::ProxyPushConsumer_ptr | _ptr_type |
Public Member Functions | |
TAO_EC_ProxyPushConsumer (TAO_EC_Event_Channel_Base *event_channel) | |
constructor... | |
virtual | ~TAO_EC_ProxyPushConsumer (void) |
destructor... | |
virtual void | disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL)=0 |
Disconnect this from. | |
CORBA::Boolean | is_connected (void) const |
Return 0 if no supplier is connected... | |
RtecEventComm::PushSupplier_ptr | supplier (void) const |
const RtecEventChannelAdmin::SupplierQOS & | publications (void) const |
The QoS (subscription) used to connect to the EC. | |
CORBA::Boolean | supplier_non_existent (CORBA::Boolean_out disconnected 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 | 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 | shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) |
The event channel is shutting down. | |
const RtecEventChannelAdmin::SupplierQOS & | publications_i (void) const |
CORBA::ULong | _incr_refcnt (void) |
Increment and decrement the reference count. | |
CORBA::ULong | _decr_refcnt (void) |
Public Attributes | |
virtual void virtual activate(RtecEventChannelAdmin::ProxyPushConsumer_ptr &proxy ACE_ENV_ARG_DECL) ACE_THROW_SPEC((CORBA voi | deactivate )(ACE_ENV_SINGLE_ARG_DECL) |
Deactivate from the POA. | |
Protected Member Functions | |
void | supplier (RtecEventComm::PushSupplier_ptr supplier) |
void | supplier_i (RtecEventComm::PushSupplier_ptr supplier) |
CORBA::Boolean | is_connected_i (void) const |
The private version (without locking) of is_connected(). | |
TAO_EC_Supplier_Filter * | filter_i (void) const |
Return the current filter, assumes the locks are held. | |
void | cleanup_i (void) |
Release the filter and the supplier. | |
Protected Attributes | |
TAO_EC_Event_Channel_Base * | event_channel_ |
The supplier admin, used for activation and memory managment. | |
ACE_Lock * | lock_ |
The locking strategy. | |
CORBA::ULong | refcount_ |
The reference count. | |
RtecEventComm::PushSupplier_var | supplier_ |
The supplier.... | |
int | connected_ |
RtecEventChannelAdmin::SupplierQOS | qos_ |
The publication and QoS information... | |
PortableServer::POA_var | default_POA_ |
Store the default POA. | |
TAO_EC_Supplier_Filter * | filter_ |
The strategy to do filtering close to the supplier. | |
Private Member Functions | |
virtual void | shutdown_hook (ACE_ENV_SINGLE_ARG_DECL) |
Template method hooks. | |
virtual void | refcount_zero_hook (void) |
Friends | |
class | TAO_EC_ProxyPushConsumer_Guard |
Implement the RtecEventChannelAdmin::ProxyPushConsumer interface, remember that this class is used to communicate with a PushSupplier, so, in effect, this is the ambassador for a supplier inside the event channel.
It makes a copy of the SupplierQOS and the supplier object reference. It uses bind/unbind to control the lifetime of the Supplier_Filter object. The object commits suicide when disconnect_push_consumer() is called.
No provisions for locking, access must be serialized externally.
|
|
|
|
|
|
|
constructor...
|
|
destructor...
|
|
|
|
Increment and decrement the reference count.
|
|
Release the filter and the supplier.
|
|
Usually implemented as no-ops, but some configurations may require this methods. |
|
Concrete implementations can use this methods to keep track of the consumers interested in this events. |
|
Disconnect this from.
|
|
|
|
|
|
Return the current filter, assumes the locks are held.
|
|
Return 0 if no supplier is connected...
|
|
The private version (without locking) of is_connected().
|
|
The QoS (subscription) used to connect to the EC.
|
|
The QoS (subscription) used to connect to the EC, assumes the locks are held, use with care! |
|
|
|
|
|
|
|
The event channel is shutting down.
|
|
Template method hooks.
|
|
Set the supplier, used by some implementations to change the policies used when invoking operations on the supplier. |
|
Return the consumer object reference. It returns nil() if it has not connected yet. |
|
|
|
Invoke the _non_existent() pseudo-operation on the supplier. If it is disconnected then it returns true and sets the <disconnected> flag. |
|
|
|
If the flag is not zero then we are connected, notice that the supplier can be nil. |
|
Deactivate from the POA.
|
|
Store the default POA.
|
|
The supplier admin, used for activation and memory managment.
|
|
The strategy to do filtering close to the supplier.
|
|
The locking strategy.
|
|
The publication and QoS information...
|
|
The reference count.
|
|
The supplier....
|