#include <CosEC_ProxyPushConsumer.h>
Public Member Functions | |
TAO_Notify_CosEC_ProxyPushConsumer (void) | |
Constructor. | |
virtual | ~TAO_Notify_CosEC_ProxyPushConsumer () |
Destructor. | |
virtual const char * | get_proxy_type_name (void) const |
virtual void | validate () |
virtual void | configure (TAO_Notify_SupplierAdmin &admin, CosNotifyChannelAdmin::ProxyID_out proxy_id) |
Protected Member Functions | |
virtual void | push (const CORBA::Any &data) |
= CosNotifyChannelAdmin::ProxyPushConsumer methods | |
virtual void | connect_push_supplier (CosEventComm::PushSupplier_ptr push_supplier) |
virtual void | disconnect_push_consumer (void) |
Private Member Functions | |
virtual void | release (void) |
Release. | |
Friends | |
class | TAO_Notify_Builder |
Definition at line 40 of file CosEC_ProxyPushConsumer.h.
TAO_Notify_CosEC_ProxyPushConsumer::TAO_Notify_CosEC_ProxyPushConsumer | ( | void | ) |
TAO_Notify_CosEC_ProxyPushConsumer::~TAO_Notify_CosEC_ProxyPushConsumer | ( | ) | [virtual] |
void TAO_Notify_CosEC_ProxyPushConsumer::configure | ( | TAO_Notify_SupplierAdmin & | admin, | |
CosNotifyChannelAdmin::ProxyID_out | proxy_id | |||
) | [virtual] |
Definition at line 96 of file CosEC_ProxyPushConsumer.cpp.
{ // Nothing to do. // This virtual method was added to support Notification MC }
void TAO_Notify_CosEC_ProxyPushConsumer::connect_push_supplier | ( | CosEventComm::PushSupplier_ptr | push_supplier | ) | [protected, virtual] |
Definition at line 52 of file CosEC_ProxyPushConsumer.cpp.
{ // Convert Supplier to Base Type TAO_Notify_PushSupplier *supplier; ACE_NEW_THROW_EX (supplier, TAO_Notify_PushSupplier (this), CORBA::NO_MEMORY ()); supplier->init (push_supplier); this->connect (supplier); }
void TAO_Notify_CosEC_ProxyPushConsumer::disconnect_push_consumer | ( | void | ) | [protected, virtual] |
Definition at line 66 of file CosEC_ProxyPushConsumer.cpp.
{ TAO_Notify_CosEC_ProxyPushConsumer::Ptr guard( this ); this->destroy (); }
const char * TAO_Notify_CosEC_ProxyPushConsumer::get_proxy_type_name | ( | void | ) | const [virtual] |
Implements TAO_Notify_Proxy.
Definition at line 73 of file CosEC_ProxyPushConsumer.cpp.
{ return "ec_proxy_push_consumer"; }
void TAO_Notify_CosEC_ProxyPushConsumer::push | ( | const CORBA::Any & | data | ) | [protected, virtual] |
= CosNotifyChannelAdmin::ProxyPushConsumer methods
Definition at line 32 of file CosEC_ProxyPushConsumer.cpp.
{ // Check if we should proceed at all. if (this->admin_properties().reject_new_events () == 1 && this->admin_properties().queue_full ()) throw CORBA::IMP_LIMIT (); if (this->is_connected () == 0) { throw CosEventComm::Disconnected (); } TAO_Notify_AnyEvent_No_Copy event (any); TAO_Notify_Method_Request_Lookup_No_Copy request (&event, this); this->execute_task (request); }
void TAO_Notify_CosEC_ProxyPushConsumer::release | ( | void | ) | [private, virtual] |
Release.
Definition at line 25 of file CosEC_ProxyPushConsumer.cpp.
{ delete this; //@@ inform factory }
void TAO_Notify_CosEC_ProxyPushConsumer::validate | ( | ) | [virtual] |
Implements TAO_Notify_Proxy.
Definition at line 79 of file CosEC_ProxyPushConsumer.cpp.
{ TAO_Notify_Supplier* sup = this->supplier (); if (sup != 0 && ! sup->is_alive (true)) { if (TAO_debug_level > 0) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) TAO_Notify_CosEC_ProxyPushConsumer::validate(%d)") ACE_TEXT ("disconnecting \n"), this->id ())); } this->disconnect_push_consumer (); } }
friend class TAO_Notify_Builder [friend] |
Definition at line 43 of file CosEC_ProxyPushConsumer.h.