TAO_RTEvent
2.4.0
|
SupplierControl. More...
#include <EC_Reactive_SupplierControl.h>
Public Member Functions | |
TAO_EC_Reactive_SupplierControl (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_SupplierControl (void) |
Destructor. More... | |
void | handle_timeout (const ACE_Time_Value &tv, const void *arg) |
Receive the timeout from the adapter. More... | |
virtual int | activate (void) |
virtual int | shutdown (void) |
virtual void | supplier_not_exist (TAO_EC_ProxyPushConsumer *proxy) |
virtual void | system_exception (TAO_EC_ProxyPushConsumer *proxy, CORBA::SystemException &) |
Public Member Functions inherited from TAO_EC_SupplierControl | |
TAO_EC_SupplierControl (void) | |
Constructor. More... | |
virtual | ~TAO_EC_SupplierControl (void) |
Destructor. More... | |
Private Member Functions | |
void | query_suppliers (void) |
Private Attributes | |
ACE_Time_Value | rate_ |
The polling rate. More... | |
ACE_Time_Value | timeout_ |
The polling timeout. More... | |
TAO_EC_SupplierControl_Adapter | adapter_ |
The Adapter for the reactor events. More... | |
TAO_EC_Event_Channel_Base * | event_channel_ |
The event channel. More... | |
CORBA::ORB_var | orb_ |
The ORB. More... | |
CORBA::PolicyCurrent_var | policy_current_ |
To control the timeout policy in the thread. More... | |
CORBA::PolicyList | policy_list_ |
Precomputed policy list to the set timeout. More... | |
ACE_Reactor * | reactor_ |
The ORB reactor. More... | |
long | timer_id_ |
The timer id. More... | |
SupplierControl.
Defines the interface for the supplier control strategy. This strategy handles misbehaving or failing suppliers.
TAO_EC_Reactive_SupplierControl::TAO_EC_Reactive_SupplierControl | ( | 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.
|
virtual |
Destructor.
|
virtual |
Activate any internal threads or timers used to poll the state of the suppliers
Reimplemented from TAO_EC_SupplierControl.
void TAO_EC_Reactive_SupplierControl::handle_timeout | ( | const ACE_Time_Value & | tv, |
const void * | arg | ||
) |
Receive the timeout from the adapter.
|
private |
Check if the suppliers still exists. It is a helper method for handle_timeout() to isolate the exceptions.
|
virtual |
Reimplemented from TAO_EC_SupplierControl.
|
virtual |
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_EC_SupplierControl.
|
virtual |
Some system exception was raised while trying to contact the supplier
Reimplemented from TAO_EC_SupplierControl.
|
private |
The Adapter for the reactor events.
|
private |
The event channel.
|
private |
The ORB.
|
private |
To control the timeout policy in the thread.
|
private |
Precomputed policy list to the set timeout.
|
private |
The polling rate.
|
private |
The ORB reactor.
|
private |
The polling timeout.
|
private |
The timer id.