#include <ProxyPushSupplier.h>
Public Member Functions | |
TAO_Notify_ProxyPushSupplier (void) | |
Constructor. | |
virtual | ~TAO_Notify_ProxyPushSupplier () |
Destructor. | |
virtual const char * | get_proxy_type_name (void) const |
virtual void | load_attrs (const TAO_Notify::NVPList &attrs) |
virtual void | validate () |
virtual void | configure (TAO_Notify_ConsumerAdmin &admin, CosNotifyChannelAdmin::ProxyID_out proxy_id) |
virtual CosNotifyChannelAdmin::ProxyType | MyType (void) |
virtual void | connect_any_push_consumer (CosEventComm::PushConsumer_ptr push_consumer) |
virtual void | disconnect_push_supplier () |
Private Types | |
typedef TAO_Notify_ProxySupplier_T < POA_Event_Forwarder::ProxyPushSupplier > | SuperClass |
Private Member Functions | |
virtual void | release (void) |
TAO_Notify_Destroy_Callback methods. | |
Friends | |
class | TAO_Notify_Builder |
Definition at line 46 of file ProxyPushSupplier.h.
typedef TAO_Notify_ProxySupplier_T<POA_Event_Forwarder::ProxyPushSupplier> TAO_Notify_ProxyPushSupplier::SuperClass [private] |
Definition at line 49 of file ProxyPushSupplier.h.
TAO_Notify_ProxyPushSupplier::TAO_Notify_ProxyPushSupplier | ( | void | ) |
TAO_Notify_ProxyPushSupplier::~TAO_Notify_ProxyPushSupplier | ( | ) | [virtual] |
void TAO_Notify_ProxyPushSupplier::configure | ( | TAO_Notify_ConsumerAdmin & | admin, | |
CosNotifyChannelAdmin::ProxyID_out | proxy_id | |||
) | [virtual] |
Definition at line 108 of file ProxyPushSupplier.cpp.
{ // presently nothing to do here. // this method was added to support NotificationMC }
void TAO_Notify_ProxyPushSupplier::connect_any_push_consumer | ( | CosEventComm::PushConsumer_ptr | push_consumer | ) | [virtual] |
Definition at line 29 of file ProxyPushSupplier.cpp.
{ // Convert Consumer to Base Type TAO_Notify_PushConsumer* consumer; ACE_NEW_THROW_EX (consumer, TAO_Notify_PushConsumer (this), CORBA::NO_MEMORY ()); consumer->init (push_consumer); this->connect (consumer); this->self_change (); }
void TAO_Notify_ProxyPushSupplier::disconnect_push_supplier | ( | void | ) | [virtual] |
Definition at line 44 of file ProxyPushSupplier.cpp.
{ TAO_Notify_ProxyPushSupplier::Ptr guard( this ); this->destroy (); this->self_change (); }
const char * TAO_Notify_ProxyPushSupplier::get_proxy_type_name | ( | void | ) | const [virtual] |
Implements TAO_Notify_Proxy.
Definition at line 58 of file ProxyPushSupplier.cpp.
{ return "proxy_push_supplier"; }
void TAO_Notify_ProxyPushSupplier::load_attrs | ( | const TAO_Notify::NVPList & | attrs | ) | [virtual] |
Definition at line 81 of file ProxyPushSupplier.cpp.
{ SuperClass::load_attrs(attrs); ACE_CString ior; if (attrs.load("PeerIOR", ior)) { CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb(); try { CosNotifyComm::PushConsumer_var pc = CosNotifyComm::PushConsumer::_nil(); if (ior.length() > 0) { CORBA::Object_var obj = orb->string_to_object(ior.c_str()); pc = CosNotifyComm::PushConsumer::_unchecked_narrow(obj.in()); } this->connect_any_push_consumer(pc.in()); } catch (const CORBA::Exception&) { // if we can't reconnect, tough... } } }
CosNotifyChannelAdmin::ProxyType TAO_Notify_ProxyPushSupplier::MyType | ( | void | ) | [virtual] |
Definition at line 52 of file ProxyPushSupplier.cpp.
{
return CosNotifyChannelAdmin::PUSH_ANY;
}
void TAO_Notify_ProxyPushSupplier::release | ( | void | ) | [private, virtual] |
TAO_Notify_Destroy_Callback methods.
Definition at line 22 of file ProxyPushSupplier.cpp.
{ delete this; //@@ inform factory }
void TAO_Notify_ProxyPushSupplier::validate | ( | ) | [virtual] |
Implements TAO_Notify_Proxy.
Definition at line 64 of file ProxyPushSupplier.cpp.
{ TAO_Notify_Consumer* con = this->consumer (); if (con != 0 && ! con->is_alive (true)) { if (TAO_debug_level > 0) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) TAO_Notify_ProxyPushSupplier::validate(%d)") ACE_TEXT ("disconnecting \n"), this->id ())); } this->disconnect_push_supplier (); } }
friend class TAO_Notify_Builder [friend] |
Definition at line 50 of file ProxyPushSupplier.h.