Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_EC_Reactive_ConsumerControl Class Reference

ConsumerControl. More...

#include <EC_Reactive_ConsumerControl.h>

Inheritance diagram for TAO_EC_Reactive_ConsumerControl:

Inheritance graph
[legend]
Collaboration diagram for TAO_EC_Reactive_ConsumerControl:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_EC_Reactive_ConsumerControl (const ACE_Time_Value &rate, TAO_EC_Event_Channel *event_channel, CORBA::ORB_ptr orb)
 Constructor. It does not assume ownership of the <event_channel> parameter. More...

virtual ~TAO_EC_Reactive_ConsumerControl (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)
 Activate any internal threads or timers used to poll the state of the consumers. More...

virtual int shutdown (void)
virtual void consumer_not_exist (TAO_EC_ProxyPushSupplier *proxy ACE_ENV_ARG_DECL_NOT_USED)
 When pushing an event to the consumer a CORBA::OBJECT_NOT_EXIST exception was raised. More...

virtual void system_exception (TAO_EC_ProxyPushSupplier *proxy, CORBA::SystemException &ACE_ENV_ARG_DECL_NOT_USED)
 Some system exception was rasied while trying to push an event. More...


Private Methods

void query_consumers (ACE_ENV_SINGLE_ARG_DECL)
 Check if the consumers still exists. It is a helper method for handle_timeout() to isolate the exceptions. More...


Private Attributes

ACE_Time_Value rate_
 The polling rate. More...

TAO_EC_ConsumerControl_Adapter adapter_
 The Adapter for the reactor events. More...

TAO_EC_Event_Channelevent_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_Reactorreactor_
 The ORB reactor. More...


Detailed Description

ConsumerControl.

Defines the interface for the consumer control strategy. This strategy handles misbehaving or failing consumers.


Constructor & Destructor Documentation

TAO_EC_Reactive_ConsumerControl::TAO_EC_Reactive_ConsumerControl const ACE_Time_Value   rate,
TAO_EC_Event_Channel   ec,
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...


Member Function Documentation

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    ACE_ENV_ARG_DECL [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 ACE_ENV_SINGLE_ARG_DECL    [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   ACE_ENV_ARG_DECL
[virtual]
 

Some system exception was rasied while trying to push an event.

Reimplemented from TAO_EC_ConsumerControl.


Member Data Documentation

TAO_EC_ConsumerControl_Adapter TAO_EC_Reactive_ConsumerControl::adapter_ [private]
 

The Adapter for the reactor events.

TAO_EC_Event_Channel* TAO_EC_Reactive_ConsumerControl::event_channel_ [private]
 

The event channel.

CORBA::ORB_var TAO_EC_Reactive_ConsumerControl::orb_ [private]
 

The ORB.

CORBA::PolicyCurrent_var TAO_EC_Reactive_ConsumerControl::policy_current_ [private]
 

To control the timeout policy in the thread.

CORBA::PolicyList TAO_EC_Reactive_ConsumerControl::policy_list_ [private]
 

Precomputed policy list to the set timeout.

ACE_Time_Value TAO_EC_Reactive_ConsumerControl::rate_ [private]
 

The polling rate.

ACE_Reactor* TAO_EC_Reactive_ConsumerControl::reactor_ [private]
 

The ORB reactor.


The documentation for this class was generated from the following files:
Generated on Thu Oct 10 21:17:06 2002 for TAO_RTEvent by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001