#include <CEC_EventChannel.h>
This class is the Mediator between all the classes in the EC implementation, its main task is to redirect the messages to the right components, to hold and manage the lifetime of the long lived objects (Timer_Module, SupplierAdmin, ConsumerAdmin and Dispatching) and to provide a simpler interface to the CEC_Factory.
typedef ACE_Hash_Map_Manager_Ex<PortableServer::ServantBase*, unsigned int, ServantBaseHash, ACE_Equal_To<PortableServer::ServantBase*>, TAO_SYNCH_MUTEX> TAO_CEC_EventChannel::ServantRetryMap |
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_CEC_EventChannel::TAO_CEC_EventChannel | ( | const TAO_CEC_EventChannel_Attributes & | attributes, | |
TAO_CEC_Factory * | factory = 0 , |
|||
int | own_factory = 0 | |||
) |
constructor If <own_factory> is not 0 it assumes ownership of the factory. If the factory is <nil> it uses the Service_Configurator to load the Factory, if not found it uses TAO_CEC_Default_Resource_Factory
TAO_CEC_EventChannel::~TAO_CEC_EventChannel | ( | void | ) | [virtual] |
destructor
void TAO_CEC_EventChannel::activate | ( | void | ) | [virtual] |
Start the internal threads (if any), etc. After this call the EC can be used.
void TAO_CEC_EventChannel::shutdown | ( | void | ) | [virtual] |
Shutdown any internal threads, cleanup all the internal structures, flush all the messages, etc.
ACE_INLINE TAO_CEC_Dispatching * TAO_CEC_EventChannel::dispatching | ( | void | ) | const |
Access the dispatching module....
ACE_INLINE TAO_CEC_ConsumerAdmin * TAO_CEC_EventChannel::consumer_admin | ( | void | ) | const |
Access the consumer admin implementation.
ACE_INLINE TAO_CEC_SupplierAdmin * TAO_CEC_EventChannel::supplier_admin | ( | void | ) | const |
Access the supplier admin implementation.
ACE_INLINE TAO_CEC_ConsumerControl * TAO_CEC_EventChannel::consumer_control | ( | void | ) | const |
Access the consumer control strategy.
ACE_INLINE TAO_CEC_SupplierControl * TAO_CEC_EventChannel::supplier_control | ( | void | ) | const |
Access the supplier control strategy.
ACE_INLINE void TAO_CEC_EventChannel::create_proxy | ( | TAO_CEC_ProxyPushSupplier *& | x | ) |
Create and destroy a ProxyPushSupplier.
ACE_INLINE void TAO_CEC_EventChannel::destroy_proxy | ( | TAO_CEC_ProxyPushSupplier * | supplier | ) |
ACE_INLINE void TAO_CEC_EventChannel::create_proxy | ( | TAO_CEC_ProxyPullSupplier *& | x | ) |
Create and destroy a ProxyPullSupplier.
ACE_INLINE void TAO_CEC_EventChannel::destroy_proxy | ( | TAO_CEC_ProxyPullSupplier * | supplier | ) |
ACE_INLINE void TAO_CEC_EventChannel::create_proxy | ( | TAO_CEC_ProxyPushConsumer *& | x | ) |
Create and destroy a ProxyPushConsumer.
ACE_INLINE void TAO_CEC_EventChannel::destroy_proxy | ( | TAO_CEC_ProxyPushConsumer * | consumer | ) |
ACE_INLINE void TAO_CEC_EventChannel::create_proxy | ( | TAO_CEC_ProxyPullConsumer *& | x | ) |
Create and destroy a ProxyPushConsumer.
ACE_INLINE void TAO_CEC_EventChannel::destroy_proxy | ( | TAO_CEC_ProxyPullConsumer * | consumer | ) |
ACE_INLINE void TAO_CEC_EventChannel::create_proxy_collection | ( | TAO_CEC_ProxyPushSupplier_Collection *& | x | ) |
Create and destroy a the collections used to store Proxy*Suppliers
ACE_INLINE void TAO_CEC_EventChannel::destroy_proxy_collection | ( | TAO_CEC_ProxyPushSupplier_Collection * | x | ) |
void TAO_CEC_EventChannel::create_proxy_collection | ( | TAO_CEC_ProxyPullSupplier_Collection *& | ) |
void TAO_CEC_EventChannel::destroy_proxy_collection | ( | TAO_CEC_ProxyPullSupplier_Collection * | ) |
void TAO_CEC_EventChannel::create_proxy_collection | ( | TAO_CEC_ProxyPushConsumer_Collection *& | ) |
Create and destroy a the collections used to store Proxy*Consumers
void TAO_CEC_EventChannel::destroy_proxy_collection | ( | TAO_CEC_ProxyPushConsumer_Collection * | ) |
void TAO_CEC_EventChannel::create_proxy_collection | ( | TAO_CEC_ProxyPullConsumer_Collection *& | ) |
void TAO_CEC_EventChannel::destroy_proxy_collection | ( | TAO_CEC_ProxyPullConsumer_Collection * | ) |
ACE_INLINE PortableServer::POA_ptr TAO_CEC_EventChannel::supplier_poa | ( | void | ) |
Access the supplier and consumer POAs from the factory.
ACE_INLINE PortableServer::POA_ptr TAO_CEC_EventChannel::consumer_poa | ( | void | ) |
ACE_INLINE ACE_Lock * TAO_CEC_EventChannel::create_consumer_lock | ( | void | ) |
Locking strategies for the ProxyPushConsumer and ProxyPushSupplier objects
ACE_INLINE void TAO_CEC_EventChannel::destroy_consumer_lock | ( | ACE_Lock * | x | ) |
ACE_INLINE ACE_Lock * TAO_CEC_EventChannel::create_supplier_lock | ( | void | ) |
ACE_INLINE void TAO_CEC_EventChannel::destroy_supplier_lock | ( | ACE_Lock * | x | ) |
void TAO_CEC_EventChannel::connected | ( | TAO_CEC_ProxyPushConsumer * | consumer | ) | [virtual] |
Used to inform the EC that a Consumer has connected or disconnected from it.
void TAO_CEC_EventChannel::reconnected | ( | TAO_CEC_ProxyPushConsumer * | consumer | ) | [virtual] |
void TAO_CEC_EventChannel::disconnected | ( | TAO_CEC_ProxyPushConsumer * | consumer | ) | [virtual] |
void TAO_CEC_EventChannel::connected | ( | TAO_CEC_ProxyPullConsumer * | consumer | ) | [virtual] |
void TAO_CEC_EventChannel::reconnected | ( | TAO_CEC_ProxyPullConsumer * | consumer | ) | [virtual] |
void TAO_CEC_EventChannel::disconnected | ( | TAO_CEC_ProxyPullConsumer * | consumer | ) | [virtual] |
void TAO_CEC_EventChannel::connected | ( | TAO_CEC_ProxyPushSupplier * | supplier | ) | [virtual] |
Used to inform the EC that a Supplier has connected or disconnected from it.
void TAO_CEC_EventChannel::reconnected | ( | TAO_CEC_ProxyPushSupplier * | supplier | ) | [virtual] |
void TAO_CEC_EventChannel::disconnected | ( | TAO_CEC_ProxyPushSupplier * | supplier | ) | [virtual] |
void TAO_CEC_EventChannel::connected | ( | TAO_CEC_ProxyPullSupplier * | supplier | ) | [virtual] |
void TAO_CEC_EventChannel::reconnected | ( | TAO_CEC_ProxyPullSupplier * | supplier | ) | [virtual] |
void TAO_CEC_EventChannel::disconnected | ( | TAO_CEC_ProxyPullSupplier * | supplier | ) | [virtual] |
ACE_INLINE int TAO_CEC_EventChannel::consumer_reconnect | ( | void | ) | const |
Can the consumers reconnect to the EC?
ACE_INLINE int TAO_CEC_EventChannel::supplier_reconnect | ( | void | ) | const |
Can the suppliers reconnect to the EC?
ACE_INLINE int TAO_CEC_EventChannel::disconnect_callbacks | ( | void | ) | const |
Should we send callback disconnect messages when a proxy is disconnected by the client
CosEventChannelAdmin::ConsumerAdmin_ptr TAO_CEC_EventChannel::for_consumers | ( | void | ) | [virtual] |
The default implementation is: this->consumer_admin ()->_this (env);
CosEventChannelAdmin::SupplierAdmin_ptr TAO_CEC_EventChannel::for_suppliers | ( | void | ) | [virtual] |
The default implementation is: this->supplier_admin ()->_this (env);
void TAO_CEC_EventChannel::destroy | ( | void | ) | [virtual] |
Commit suicide.
ACE_INLINE TAO_CEC_EventChannel::ServantRetryMap & TAO_CEC_EventChannel::get_servant_retry_map | ( | void | ) |
CORBA::Policy_ptr TAO_CEC_EventChannel::create_roundtrip_timeout_policy | ( | const ACE_Time_Value & | timeout | ) |
Forwarded to the factory.
The POAs used to activate "supplier-side" and "consumer-side" objects.
TAO_CEC_Factory* TAO_CEC_EventChannel::factory_ [private] |
This is the abstract factory that creates all the objects that compose an event channel, the event channel simply acts as a Mediator among them.
int TAO_CEC_EventChannel::own_factory_ [private] |
Flag that indicates if we own the factory.
The dispatching "module".
The pulling strategy.
The ConsumerAdmin implementation.
The SupplierAdmin implementation.
int TAO_CEC_EventChannel::consumer_reconnect_ [private] |
Consumer/Supplier reconnection flags.
int TAO_CEC_EventChannel::supplier_reconnect_ [private] |
int TAO_CEC_EventChannel::disconnect_callbacks_ [private] |
If not zero we send callbacks when a proxy is disconnected.
Strategies to disconnect misbehaving or destroyed consumers and suppliers