#include <CEC_ConsumerAdmin.h>
Collaboration diagram for TAO_CEC_ConsumerAdmin:
Implements the ConsumerAdmin interface, i.e. the factory for ProxyPushSupplier objects. = MEMORY MANAGMENT It does not assume ownership of the TAO_CEC_EventChannel object; but it *does* assume ownership of the TAO_CEC_ProxyPushSupplier_Set object. = LOCKING No provisions for locking, access must be serialized externally. = TODO
Definition at line 50 of file CEC_ConsumerAdmin.h.
|
constructor. If is nil then it builds one using the argument. In any case it assumes ownership. Definition at line 21 of file CEC_ConsumerAdmin.cpp. References TAO_CEC_EventChannel::consumer_poa(), and default_POA_.
00022 : event_channel_ (ec), 00023 push_admin_ (ec), 00024 pull_admin_ (ec) 00025 { 00026 this->default_POA_ = 00027 this->event_channel_->consumer_poa (); 00028 } |
|
destructor...
Definition at line 30 of file CEC_ConsumerAdmin.cpp.
00031 { 00032 } |
|
Definition at line 118 of file CEC_ConsumerAdmin.cpp.
00119 {
00120 return PortableServer::POA::_duplicate (this->default_POA_.in ());
00121 }
|
|
Definition at line 73 of file CEC_ConsumerAdmin.cpp. References ACE_ENV_ARG_PARAMETER, and pull_admin_.
00075 { 00076 this->pull_admin_.connected (supplier ACE_ENV_ARG_PARAMETER); 00077 } |
|
Used to inform the EC that a Supplier has connected or disconnected from it. Definition at line 52 of file CEC_ConsumerAdmin.cpp. References ACE_ENV_ARG_PARAMETER, and push_admin_. Referenced by TAO_CEC_EventChannel::connected().
00054 { 00055 this->push_admin_.connected (supplier ACE_ENV_ARG_PARAMETER); 00056 } |
|
Definition at line 87 of file CEC_ConsumerAdmin.cpp. References ACE_ENV_ARG_PARAMETER, and pull_admin_.
00089 { 00090 this->pull_admin_.disconnected (supplier ACE_ENV_ARG_PARAMETER); 00091 } |
|
Definition at line 66 of file CEC_ConsumerAdmin.cpp. References ACE_ENV_ARG_PARAMETER, and push_admin_. Referenced by TAO_CEC_EventChannel::disconnected().
00068 { 00069 this->push_admin_.disconnected (supplier ACE_ENV_ARG_PARAMETER); 00070 } |
|
|
|
For each elements call <worker->work()>.
Referenced by TAO_CEC_Reactive_ConsumerControl::query_consumers(). |
|
Definition at line 111 of file CEC_ConsumerAdmin.cpp. References ACE_ENV_SINGLE_ARG_PARAMETER.
00113 { 00114 return this->pull_admin_.obtain (ACE_ENV_SINGLE_ARG_PARAMETER); 00115 } |
|
Definition at line 104 of file CEC_ConsumerAdmin.cpp. References ACE_ENV_SINGLE_ARG_PARAMETER.
00106 { 00107 return this->push_admin_.obtain (ACE_ENV_SINGLE_ARG_PARAMETER); 00108 } |
|
Push the event to all the consumers.
Definition at line 35 of file CEC_ConsumerAdmin.cpp. References ACE_CHECK, ACE_ENV_ARG_PARAMETER, pull_admin_, and push_admin_. Referenced by TAO_CEC_Pull_Event::work().
00037 { 00038 TAO_CEC_Propagate_Event_Push push_worker (event); 00039 00040 this->push_admin_.for_each (&push_worker 00041 ACE_ENV_ARG_PARAMETER); 00042 ACE_CHECK; 00043 00044 TAO_CEC_Propagate_Event_Pull pull_worker (event); 00045 00046 this->pull_admin_.for_each (&pull_worker 00047 ACE_ENV_ARG_PARAMETER); 00048 ACE_CHECK; 00049 } |
|
Definition at line 80 of file CEC_ConsumerAdmin.cpp. References ACE_ENV_ARG_PARAMETER, and pull_admin_.
00082 { 00083 this->pull_admin_.reconnected (supplier ACE_ENV_ARG_PARAMETER); 00084 } |
|
Definition at line 59 of file CEC_ConsumerAdmin.cpp. References ACE_ENV_ARG_PARAMETER, and push_admin_. Referenced by TAO_CEC_EventChannel::reconnected().
00061 { 00062 this->push_admin_.reconnected (supplier ACE_ENV_ARG_PARAMETER); 00063 } |
|
The event channel is shutting down, inform all the consumers of this Definition at line 94 of file CEC_ConsumerAdmin.cpp. References ACE_CHECK, ACE_ENV_SINGLE_ARG_PARAMETER, pull_admin_, and push_admin_.
00095 { 00096 this->push_admin_.shutdown (ACE_ENV_SINGLE_ARG_PARAMETER); 00097 ACE_CHECK; 00098 00099 this->pull_admin_.shutdown (ACE_ENV_SINGLE_ARG_PARAMETER); 00100 ACE_CHECK; 00101 } |
|
Store the default POA.
Definition at line 109 of file CEC_ConsumerAdmin.h. Referenced by TAO_CEC_ConsumerAdmin(). |
|
The Event Channel we belong to.
Definition at line 106 of file CEC_ConsumerAdmin.h. |
|
Implement the pull side of this class.
Definition at line 115 of file CEC_ConsumerAdmin.h. Referenced by connected(), disconnected(), push(), reconnected(), and shutdown(). |
|
Implement the push side of this class.
Definition at line 112 of file CEC_ConsumerAdmin.h. Referenced by connected(), disconnected(), push(), reconnected(), and shutdown(). |