TAO_RTEvent
2.0.8
|
ConsumerControl. More...
#include <EC_Reactive_ConsumerControl.h>
Public Member Functions | |
TAO_EC_Reactive_ConsumerControl (const ACE_Time_Value &rate, const ACE_Time_Value &timeout, TAO_EC_Event_Channel_Base *event_channel, CORBA::ORB_ptr orb) | |
virtual | ~TAO_EC_Reactive_ConsumerControl (void) |
Destructor. | |
void | handle_timeout (const ACE_Time_Value &tv, const void *arg) |
Receive the timeout from the adapter. | |
virtual int | activate (void) |
virtual int | shutdown (void) |
virtual void | consumer_not_exist (TAO_EC_ProxyPushSupplier *proxy) |
virtual void | system_exception (TAO_EC_ProxyPushSupplier *proxy, CORBA::SystemException &) |
Private Member Functions | |
void | query_consumers (void) |
Private Attributes | |
ACE_Time_Value | rate_ |
The polling rate. | |
ACE_Time_Value | timeout_ |
The polling timeout. | |
TAO_EC_ConsumerControl_Adapter | adapter_ |
The Adapter for the reactor events. | |
TAO_EC_Event_Channel_Base * | 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. |
ConsumerControl.
Defines the interface for the consumer control strategy. This strategy handles misbehaving or failing consumers.
TAO_EC_Reactive_ConsumerControl::TAO_EC_Reactive_ConsumerControl | ( | const ACE_Time_Value & | rate, |
const ACE_Time_Value & | timeout, | ||
TAO_EC_Event_Channel_Base * | event_channel, | ||
CORBA::ORB_ptr | orb | ||
) |
Constructor. It does not assume ownership of the event_channel parameter.
TAO_EC_Reactive_ConsumerControl::~TAO_EC_Reactive_ConsumerControl | ( | void | ) | [virtual] |
Destructor.
int TAO_EC_Reactive_ConsumerControl::activate | ( | void | ) | [virtual] |
Activate any internal threads or timers used to poll the state of the consumers
Reimplemented from TAO_EC_ConsumerControl.
void TAO_EC_Reactive_ConsumerControl::consumer_not_exist | ( | TAO_EC_ProxyPushSupplier * | proxy | ) | [virtual] |
When pushing an event to the consumer a CORBA::OBJECT_NOT_EXIST exception was raised. The only interpretation is that the object has been destroyed. The strategy has to (at the very least), reclaim all the resources attached to that object.
Reimplemented from TAO_EC_ConsumerControl.
void TAO_EC_Reactive_ConsumerControl::handle_timeout | ( | const ACE_Time_Value & | tv, |
const void * | arg | ||
) |
Receive the timeout from the adapter.
void TAO_EC_Reactive_ConsumerControl::query_consumers | ( | void | ) | [private] |
Check if the consumers still exists. It is a helper method for handle_timeout() to isolate the exceptions.
int TAO_EC_Reactive_ConsumerControl::shutdown | ( | void | ) | [virtual] |
Reimplemented from TAO_EC_ConsumerControl.
void TAO_EC_Reactive_ConsumerControl::system_exception | ( | TAO_EC_ProxyPushSupplier * | proxy, |
CORBA::SystemException & | |||
) | [virtual] |
Some system exception was raised while trying to contact the consumer
Reimplemented from TAO_EC_ConsumerControl.
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.
The polling timeout.