#include <CEC_Reactive_SupplierControl.h>
Inheritance diagram for TAO_CEC_Reactive_SupplierControl
Public Methods | |
TAO_CEC_Reactive_SupplierControl (const ACE_Time_Value &rate, TAO_CEC_EventChannel *event_channel, CORBA::ORB_ptr orb) | |
Constructor. It does not assume ownership of the <event_channel> parameter. | |
virtual | ~TAO_CEC_Reactive_SupplierControl (void) |
destructor... | |
void | handle_timeout (const ACE_Time_Value &tv, const void* arg) |
Receive the timeout from the adapter. | |
virtual int | activate (void) |
Activate any internal threads or timers used to poll the state of the suppliers. | |
virtual int | shutdown (void) |
virtual void | supplier_not_exist (TAO_CEC_ProxyPushConsumer *proxy, CORBA::Environment &) |
virtual void | supplier_not_exist (TAO_CEC_ProxyPullConsumer *proxy, CORBA::Environment &) |
virtual void | system_exception (TAO_CEC_ProxyPullConsumer *proxy, CORBA::SystemException &, CORBA::Environment &) |
Some system exception was rasied while trying to push an event. | |
Private Methods | |
void | query_suppliers (CORBA::Environment &ACE_TRY_ENV) |
Check if the suppliers still exists. It is a helper method for handle_timeout() to isolate the exceptions. | |
Private Attributes | |
ACE_Time_Value | rate_ |
The polling rate. | |
TAO_CEC_SupplierControl_Adapter | adapter_ |
The Adapter for the reactor events. | |
TAO_CEC_EventChannel* | event_channel_ |
The event channel. | |
CORBA::ORB_var | orb_ |
The ORB. | |
CORBA::PolicyCurrent_var | policy_current_ |
To control the timeout policy in the thread. | |
CORBA::PolicyList | policy_list_ |
Precomputed policy list to the set timeout. | |
ACE_Reactor* | reactor_ |
The ORB reactor. |
Defines the interface for the supplier control strategy. This strategy handles misbehaving or failing suppliers. = MEMORY MANAGMENT = LOCKING = TODO
|
Constructor. It does not assume ownership of the <event_channel> parameter.
|
|
destructor...
|
|
Activate any internal threads or timers used to poll the state of the suppliers.
Reimplemented from TAO_CEC_SupplierControl. |
|
Receive the timeout from the adapter.
|
|
Check if the suppliers still exists. It is a helper method for handle_timeout() to isolate the exceptions.
|
|
Reimplemented from TAO_CEC_SupplierControl. |
|
Invoked by helper classes when they detect that a supplier does not exists (i.e. _non_existent() returns true and/or the CORBA::OBJECT_NOT_EXIST exception has been raised). Reimplemented from TAO_CEC_SupplierControl. |
|
Invoked by helper classes when they detect that a supplier does not exists (i.e. _non_existent() returns true and/or the CORBA::OBJECT_NOT_EXIST exception has been raised). Reimplemented from TAO_CEC_SupplierControl. |
|
Some system exception was rasied while trying to push an event.
Reimplemented from TAO_CEC_SupplierControl. |
|
The Adapter for the reactor events.
|
|
The event channel.
|
|
The ORB.
|
|
To control the timeout policy in the thread.
|
|
Precomputed policy list to the set timeout.
|
|
The polling rate.
|
|
The ORB reactor.
|