#include <CEC_TypedConsumerAdmin.h>
Collaboration diagram for TAO_CEC_TypedConsumerAdmin:
Public Member Functions | |
TAO_CEC_TypedConsumerAdmin (TAO_CEC_TypedEventChannel *typed_event_channel) | |
virtual | ~TAO_CEC_TypedConsumerAdmin (void) |
void | for_each (TAO_ESF_Worker< TAO_CEC_ProxyPushSupplier > *worker) |
For each elements call <worker->work()>. | |
virtual void | invoke (const TAO_CEC_TypedEvent &typed_event) |
Invoke the typed event on all the consumers. | |
virtual void | connected (TAO_CEC_ProxyPushSupplier *) |
virtual void | reconnected (TAO_CEC_ProxyPushSupplier *) |
virtual void | disconnected (TAO_CEC_ProxyPushSupplier *) |
virtual void | shutdown (void) |
virtual CosEventChannelAdmin::ProxyPushSupplier_ptr | obtain_typed_push_supplier (const char *uses_interface) |
virtual CosTypedEventChannelAdmin::TypedProxyPullSupplier_ptr | obtain_typed_pull_supplier (const char *supported_interface) |
virtual CosEventChannelAdmin::ProxyPushSupplier_ptr | obtain_push_supplier (void) |
virtual CosEventChannelAdmin::ProxyPullSupplier_ptr | obtain_pull_supplier (void) |
virtual PortableServer::POA_ptr | _default_POA (void) |
Private Attributes | |
TAO_CEC_TypedEventChannel * | typed_event_channel_ |
The Event Channel we belong to. | |
PortableServer::POA_var | default_POA_ |
Store the default POA. | |
TAO_ESF_Proxy_Admin< TAO_CEC_TypedEventChannel, TAO_CEC_ProxyPushSupplier, CosEventChannelAdmin::ProxyPushSupplier > | typed_push_admin_ |
Implement the push side of this class. |
|
Definition at line 17 of file CEC_TypedConsumerAdmin.cpp. References TAO_CEC_TypedEventChannel::typed_consumer_poa().
00018 : typed_event_channel_ (ec), 00019 typed_push_admin_ (ec) 00020 { 00021 this->default_POA_ = 00022 this->typed_event_channel_->typed_consumer_poa (); 00023 } |
|
Definition at line 26 of file CEC_TypedConsumerAdmin.cpp.
00027 { 00028 } |
|
Definition at line 100 of file CEC_TypedConsumerAdmin.cpp. Referenced by TAO_CEC_TypedEventChannel::shutdown().
00101 {
00102 return PortableServer::POA::_duplicate (this->default_POA_.in ());
00103 }
|
|
Used to inform the EC that a Supplier has connected or disconnected from it. Definition at line 39 of file CEC_TypedConsumerAdmin.cpp. References typed_push_admin_. Referenced by TAO_CEC_TypedEventChannel::connected().
00040 { 00041 this->typed_push_admin_.connected (supplier); 00042 } |
|
Definition at line 51 of file CEC_TypedConsumerAdmin.cpp. References typed_push_admin_. Referenced by TAO_CEC_TypedEventChannel::disconnected().
00052 { 00053 this->typed_push_admin_.disconnected (supplier); 00054 } |
|
For each elements call <worker->work()>.
Definition at line 9 of file CEC_TypedConsumerAdmin.inl. References typed_push_admin_.
00010 { 00011 this->typed_push_admin_.for_each (worker); 00012 } |
|
Invoke the typed event on all the consumers.
Definition at line 31 of file CEC_TypedConsumerAdmin.cpp. References typed_push_admin_. Referenced by TAO_CEC_TypedProxyPushConsumer::invoke().
00032 { 00033 TAO_CEC_Propagate_Typed_Event typed_event_worker (typed_event, this->typed_event_channel_); 00034 00035 this->typed_push_admin_.for_each (&typed_event_worker); 00036 } |
|
Definition at line 94 of file CEC_TypedConsumerAdmin.cpp.
00095 {
00096 throw CORBA::NO_IMPLEMENT ();
00097 }
|
|
Definition at line 88 of file CEC_TypedConsumerAdmin.cpp.
00089 {
00090 throw CORBA::NO_IMPLEMENT ();
00091 }
|
|
Definition at line 63 of file CEC_TypedConsumerAdmin.cpp.
00066 {
00067 throw CosTypedEventChannelAdmin::InterfaceNotSupported ();
00068 }
|
|
Definition at line 71 of file CEC_TypedConsumerAdmin.cpp. References TAO_CEC_TypedEventChannel::consumer_register_uses_interace(), and typed_push_admin_.
00075 { 00076 // Register the consumer uses_interface with the EC 00077 int result = this->typed_event_channel_->consumer_register_uses_interace (uses_interface); 00078 00079 if (result == -1) 00080 { 00081 throw CosTypedEventChannelAdmin::NoSuchImplementation (); 00082 } 00083 00084 return this->typed_push_admin_.obtain (); 00085 } |
|
Definition at line 45 of file CEC_TypedConsumerAdmin.cpp. References typed_push_admin_. Referenced by TAO_CEC_TypedEventChannel::reconnected().
00046 { 00047 this->typed_push_admin_.reconnected (supplier); 00048 } |
|
The typed event channel is shutting down, inform all the consumers of this Definition at line 57 of file CEC_TypedConsumerAdmin.cpp. References typed_push_admin_. Referenced by TAO_CEC_TypedEventChannel::shutdown().
00058 { 00059 this->typed_push_admin_.shutdown (); 00060 } |
|
Store the default POA.
Definition at line 85 of file CEC_TypedConsumerAdmin.h. |
|
The Event Channel we belong to.
Definition at line 82 of file CEC_TypedConsumerAdmin.h. |
|
Implement the push side of this class.
Definition at line 88 of file CEC_TypedConsumerAdmin.h. Referenced by connected(), disconnected(), for_each(), invoke(), obtain_typed_push_supplier(), reconnected(), and shutdown(). |