TAO_CosEvent
2.1.2
|
#include <CEC_TypedProxyPushConsumer.h>
Public Types | |
typedef CosTypedEventChannelAdmin::TypedProxyPushConsumer_ptr | _ptr_type |
typedef CosTypedEventChannelAdmin::TypedProxyPushConsumer_var | _var_type |
Public Member Functions | |
TAO_CEC_TypedProxyPushConsumer (TAO_CEC_TypedEventChannel *typed_event_channel, const ACE_Time_Value &timeout) | |
Constructor. | |
virtual | ~TAO_CEC_TypedProxyPushConsumer (void) |
Destructor. | |
virtual void | activate (CosTypedEventChannelAdmin::TypedProxyPushConsumer_ptr &activated_proxy) |
Activate in the POA. | |
virtual void | deactivate (void) |
Deactivate from the POA. | |
CORBA::Boolean | supplier_non_existent (CORBA::Boolean_out disconnected) |
virtual void | shutdown (void) |
The event channel is shutting down. | |
CORBA::ULong | _incr_refcnt (void) |
Increment and decrement the reference count. | |
CORBA::ULong | _decr_refcnt (void) |
virtual void | connect_push_supplier (CosEventComm::PushSupplier_ptr push_supplier) |
virtual void | push (const CORBA::Any &event) |
virtual void | invoke (const TAO_CEC_TypedEvent &typed_event) |
virtual void | disconnect_push_consumer (void) |
virtual CORBA::Object_ptr | get_typed_consumer (void) |
virtual PortableServer::POA_ptr | _default_POA (void) |
virtual void | _add_ref (void) |
virtual void | _remove_ref (void) |
Protected Member Functions | |
CORBA::Boolean | is_connected_i (void) const |
The private version (without locking) of is_connected(). | |
void | cleanup_i (void) |
Release the supplier. | |
CosEventComm::PushSupplier_ptr | apply_policy (CosEventComm::PushSupplier_ptr pre) |
Private Attributes | |
TAO_CEC_TypedEventChannel * | typed_event_channel_ |
The typed supplier admin, used for activation and memory managment. | |
ACE_Time_Value | timeout_ |
ACE_Lock * | lock_ |
The locking strategy. | |
CORBA::ULong | refcount_ |
The reference count. | |
CosEventComm::PushSupplier_var | typed_supplier_ |
CosEventComm::PushSupplier_var | nopolicy_typed_supplier_ |
The typed supplier without any policies applied. | |
TAO_CEC_DynamicImplementationServer * | dsi_impl_ |
The DSI impl. | |
PortableServer::ObjectId_var | oid_ |
The DSI Portable Server OID. | |
int | connected_ |
PortableServer::POA_var | default_POA_ |
Store the default POA. | |
Friends | |
class | TAO_CEC_TypedProxyPushConsumer_Guard |
The guard needs access to the following protected methods. |
typedef CosTypedEventChannelAdmin::TypedProxyPushConsumer_ptr TAO_CEC_TypedProxyPushConsumer::_ptr_type |
typedef CosTypedEventChannelAdmin::TypedProxyPushConsumer_var TAO_CEC_TypedProxyPushConsumer::_var_type |
TAO_CEC_TypedProxyPushConsumer::TAO_CEC_TypedProxyPushConsumer | ( | TAO_CEC_TypedEventChannel * | typed_event_channel, |
const ACE_Time_Value & | timeout | ||
) |
Constructor.
|
virtual |
Destructor.
|
virtual |
|
virtual |
Increment and decrement the reference count.
|
virtual |
|
virtual |
Activate in the POA.
|
protected |
Assigns the parameter to both supplier_ and nopolicy_supplier_, and applies policies (when appropriate) to supplier_.
|
protected |
Release the supplier.
|
virtual |
|
virtual |
Deactivate from the POA.
|
virtual |
|
virtual |
|
virtual |
|
protected |
The private version (without locking) of is_connected().
|
virtual |
|
virtual |
The event channel is shutting down.
CORBA::Boolean TAO_CEC_TypedProxyPushConsumer::supplier_non_existent | ( | CORBA::Boolean_out | disconnected | ) |
Invoke the _non_existent() pseudo-operation on the supplier. If it is disconnected then it returns true and sets the <disconnected> flag.
|
friend |
The guard needs access to the following protected methods.
|
private |
If the flag is not zero then we are connected, notice that the supplier can be nil.
Store the default POA.
The DSI impl.
The locking strategy.
|
private |
The typed supplier without any policies applied.
The DSI Portable Server OID.
The reference count.
The typed supplier admin, used for activation and memory managment.
|
private |
The typed supplier -- use apply_policy() instead of assigning directly to typed_supplier_. This will keep typed_supplier_ and nopolicy_typed_supplier_ in sync.