TAO_CEC_ConsumerControl Class Reference

ConsumerControl. More...

#include <CEC_ConsumerControl.h>

Inheritance diagram for TAO_CEC_ConsumerControl:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TAO_CEC_ConsumerControl (void)
virtual ~TAO_CEC_ConsumerControl (void)
 destructor...

virtual int activate (void)
virtual int shutdown (void)
virtual void consumer_not_exist (TAO_CEC_ProxyPushSupplier *proxy)
virtual void consumer_not_exist (TAO_CEC_ProxyPullSupplier *proxy)
virtual void system_exception (TAO_CEC_ProxyPushSupplier *proxy, CORBA::SystemException &)
 Some system exception was rasied while trying to push an event.

virtual bool need_to_disconnect (PortableServer::ServantBase *proxy)
virtual void successful_transmission (PortableServer::ServantBase *proxy)
 Allow others to inform us when a send or receive was successful.


Detailed Description

ConsumerControl.

Defines the interface for the consumer control strategy. This strategy handles misbehaving or failing consumers. = MEMORY MANAGMENT = LOCKING = TODO

Definition at line 49 of file CEC_ConsumerControl.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_CEC_ConsumerControl::TAO_CEC_ConsumerControl void   ) 
 

Constructor. It does not assume ownership of the parameter.

Definition at line 12 of file CEC_ConsumerControl.cpp.

00013 {
00014 }

TAO_CEC_ConsumerControl::~TAO_CEC_ConsumerControl void   )  [virtual]
 

destructor...

Definition at line 16 of file CEC_ConsumerControl.cpp.

00017 {
00018 }


Member Function Documentation

int TAO_CEC_ConsumerControl::activate void   )  [virtual]
 

Activate any internal threads or timers used to poll the state of the consumers

Reimplemented in TAO_CEC_Reactive_ConsumerControl.

Definition at line 21 of file CEC_ConsumerControl.cpp.

Referenced by TAO_CEC_TypedEventChannel::activate().

00022 {
00023   return 0;
00024 }

void TAO_CEC_ConsumerControl::consumer_not_exist TAO_CEC_ProxyPullSupplier proxy  )  [virtual]
 

Invoked by helper classes when they detect that a consumer no longer exists (i.e. _non_existent() returns true and/or the CORBA::OBJECT_NOT_EXIST exception has been raised).

Reimplemented in TAO_CEC_Reactive_ConsumerControl.

Definition at line 39 of file CEC_ConsumerControl.cpp.

00041 {
00042 }

void TAO_CEC_ConsumerControl::consumer_not_exist TAO_CEC_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 in TAO_CEC_Reactive_ConsumerControl.

Definition at line 33 of file CEC_ConsumerControl.cpp.

Referenced by TAO_CEC_Ping_Pull_Consumer::work(), and TAO_CEC_Ping_Push_Consumer::work().

00035 {
00036 }

bool TAO_CEC_ConsumerControl::need_to_disconnect PortableServer::ServantBase proxy  )  [virtual]
 

Do we need to disconnect this supplier? The parameter type for proxy is PortableServer::ServantBase* due to the fact that this method will be used for TAO_CEC_ProxyPushSupplier's and TAO_CEC_ProxyPullSupplier's.

Reimplemented in TAO_CEC_Reactive_ConsumerControl.

Definition at line 52 of file CEC_ConsumerControl.cpp.

Referenced by TAO_CEC_Ping_Pull_Consumer::work(), and TAO_CEC_Ping_Push_Consumer::work().

00053 {
00054   return true;
00055 }

int TAO_CEC_ConsumerControl::shutdown void   )  [virtual]
 

Reimplemented in TAO_CEC_Reactive_ConsumerControl.

Definition at line 27 of file CEC_ConsumerControl.cpp.

Referenced by TAO_CEC_TypedEventChannel::shutdown().

00028 {
00029   return 0;
00030 }

void TAO_CEC_ConsumerControl::successful_transmission PortableServer::ServantBase proxy  )  [virtual]
 

Allow others to inform us when a send or receive was successful.

Reimplemented in TAO_CEC_Reactive_ConsumerControl.

Definition at line 58 of file CEC_ConsumerControl.cpp.

00059 {
00060 }

void TAO_CEC_ConsumerControl::system_exception TAO_CEC_ProxyPushSupplier proxy,
CORBA::SystemException
[virtual]
 

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

Reimplemented in TAO_CEC_Reactive_ConsumerControl.

Definition at line 45 of file CEC_ConsumerControl.cpp.

00048 {
00049 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:19:17 2006 for TAO_CosEvent by doxygen 1.3.6