#include <CEC_EventChannel.h>
Collaboration diagram for TAO_CEC_EventChannel:
Public Methods | |
TAO_CEC_EventChannel (const TAO_CEC_EventChannel_Attributes &attributes, TAO_CEC_Factory *factory=0, int own_factory=0) | |
virtual | ~TAO_CEC_EventChannel (void) |
destructor. More... | |
virtual void | activate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
Start the internal threads (if any), etc. After this call the EC can be used. More... | |
virtual void | shutdown (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
Shutdown any internal threads, cleanup all the internal structures, flush all the messages, etc. More... | |
TAO_CEC_Dispatching * | dispatching (void) const |
Access the dispatching module.... More... | |
TAO_CEC_ConsumerAdmin * | consumer_admin (void) const |
Access the consumer admin implementation. More... | |
TAO_CEC_SupplierAdmin * | supplier_admin (void) const |
Access the supplier admin implementation. More... | |
TAO_CEC_ConsumerControl * | consumer_control (void) const |
Access the consumer control strategy. More... | |
TAO_CEC_SupplierControl * | supplier_control (void) const |
Access the supplier control strategy. More... | |
void | create_proxy (TAO_CEC_ProxyPushSupplier *&) |
Create and destroy a ProxyPushSupplier. More... | |
void | destroy_proxy (TAO_CEC_ProxyPushSupplier *) |
void | create_proxy (TAO_CEC_ProxyPullSupplier *&) |
Create and destroy a ProxyPullSupplier. More... | |
void | destroy_proxy (TAO_CEC_ProxyPullSupplier *) |
void | create_proxy (TAO_CEC_ProxyPushConsumer *&) |
Create and destroy a ProxyPushConsumer. More... | |
void | destroy_proxy (TAO_CEC_ProxyPushConsumer *) |
void | create_proxy (TAO_CEC_ProxyPullConsumer *&) |
Create and destroy a ProxyPushConsumer. More... | |
void | destroy_proxy (TAO_CEC_ProxyPullConsumer *) |
void | create_proxy_collection (TAO_CEC_ProxyPushSupplier_Collection *&) |
Create and destroy a the collections used to store Proxy*Suppliers. More... | |
void | destroy_proxy_collection (TAO_CEC_ProxyPushSupplier_Collection *) |
void | create_proxy_collection (TAO_CEC_ProxyPullSupplier_Collection *&) |
void | destroy_proxy_collection (TAO_CEC_ProxyPullSupplier_Collection *) |
void | create_proxy_collection (TAO_CEC_ProxyPushConsumer_Collection *&) |
Create and destroy a the collections used to store Proxy*Consumers. More... | |
void | destroy_proxy_collection (TAO_CEC_ProxyPushConsumer_Collection *) |
void | create_proxy_collection (TAO_CEC_ProxyPullConsumer_Collection *&) |
void | destroy_proxy_collection (TAO_CEC_ProxyPullConsumer_Collection *) |
PortableServer::POA_ptr | supplier_poa (void) |
Access the supplier and consumer POAs from the factory. More... | |
PortableServer::POA_ptr | consumer_poa (void) |
ACE_Lock * | create_consumer_lock (void) |
Locking strategies for the ProxyPushConsumer and ProxyPushSupplier objects. More... | |
void | destroy_consumer_lock (ACE_Lock *) |
ACE_Lock * | create_supplier_lock (void) |
void | destroy_supplier_lock (ACE_Lock *) |
virtual void | connected (TAO_CEC_ProxyPushConsumer *ACE_ENV_ARG_DECL_NOT_USED) |
Used to inform the EC that a Consumer has connected or disconnected from it. More... | |
virtual void | reconnected (TAO_CEC_ProxyPushConsumer *ACE_ENV_ARG_DECL_NOT_USED) |
virtual void | disconnected (TAO_CEC_ProxyPushConsumer *ACE_ENV_ARG_DECL_NOT_USED) |
virtual void | connected (TAO_CEC_ProxyPullConsumer *ACE_ENV_ARG_DECL_NOT_USED) |
virtual void | reconnected (TAO_CEC_ProxyPullConsumer *ACE_ENV_ARG_DECL_NOT_USED) |
virtual void | disconnected (TAO_CEC_ProxyPullConsumer *ACE_ENV_ARG_DECL_NOT_USED) |
virtual void | connected (TAO_CEC_ProxyPushSupplier *ACE_ENV_ARG_DECL_NOT_USED) |
Used to inform the EC that a Supplier has connected or disconnected from it. More... | |
virtual void | reconnected (TAO_CEC_ProxyPushSupplier *ACE_ENV_ARG_DECL_NOT_USED) |
virtual void | disconnected (TAO_CEC_ProxyPushSupplier *ACE_ENV_ARG_DECL_NOT_USED) |
virtual void | connected (TAO_CEC_ProxyPullSupplier *ACE_ENV_ARG_DECL_NOT_USED) |
virtual void | reconnected (TAO_CEC_ProxyPullSupplier *ACE_ENV_ARG_DECL_NOT_USED) |
virtual void | disconnected (TAO_CEC_ProxyPullSupplier *ACE_ENV_ARG_DECL_NOT_USED) |
int | consumer_reconnect (void) const |
Can the consumers reconnect to the EC? More... | |
int | supplier_reconnect (void) const |
Can the suppliers reconnect to the EC? More... | |
int | disconnect_callbacks (void) const |
Should we send callback disconnect messages when a proxy is disconnected by the client. More... | |
int | busy_hwm (void) const |
Control the concurrency of the delayed connect/disconnect operations. More... | |
int | max_write_delay (void) const |
virtual CosEventChannelAdmin::ConsumerAdmin_ptr | for_consumers (ACE_ENV_SINGLE_ARG_DECL) throw (CORBA::SystemException) |
The default implementation is: this->consumer_admin ()->_this (env);. More... | |
virtual CosEventChannelAdmin::SupplierAdmin_ptr | for_suppliers (ACE_ENV_SINGLE_ARG_DECL) throw (CORBA::SystemException) |
The default implementation is: this->supplier_admin ()->_this (env);. More... | |
virtual void | destroy (ACE_ENV_SINGLE_ARG_DECL) throw (CORBA::SystemException) |
Commit suicide. More... | |
Private Attributes | |
PortableServer::POA_var | supplier_poa_ |
The POAs used to activate "supplier-side" and "consumer-side" objects. More... | |
PortableServer::POA_var | consumer_poa_ |
TAO_CEC_Factory * | factory_ |
int | own_factory_ |
Flag that indicates if we own the factory. More... | |
TAO_CEC_Dispatching * | dispatching_ |
The dispatching "module". More... | |
TAO_CEC_Pulling_Strategy * | pulling_strategy_ |
The pulling strategy. More... | |
TAO_CEC_ConsumerAdmin * | consumer_admin_ |
The ConsumerAdmin implementation. More... | |
TAO_CEC_SupplierAdmin * | supplier_admin_ |
The SupplierAdmin implementation. More... | |
int | consumer_reconnect_ |
Consumer/Supplier reconnection flags. More... | |
int | supplier_reconnect_ |
int | disconnect_callbacks_ |
If not zero we send callbacks when a proxy is disconnected. More... | |
int | busy_hwm_ |
Control the level of concurrency in the supplier sets with delayed operations. More... | |
int | max_write_delay_ |
TAO_CEC_ConsumerControl * | consumer_control_ |
Strategies to disconnect misbehaving or destroyed consumers and suppliers. More... | |
TAO_CEC_SupplierControl * | supplier_control_ |
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.
|
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 |
|
destructor.
|
|
Start the internal threads (if any), etc. After this call the EC can be used.
|
|
Control the concurrency of the delayed connect/disconnect operations.
|
|
|
|
Used to inform the EC that a Supplier has connected or disconnected from it.
|
|
|
|
Used to inform the EC that a Consumer has connected or disconnected from it.
|
|
Access the consumer admin implementation.
|
|
Access the consumer control strategy.
|
|
|
|
Can the consumers reconnect to the EC?
|
|
Locking strategies for the ProxyPushConsumer and ProxyPushSupplier objects.
|
|
Create and destroy a ProxyPushConsumer.
|
|
Create and destroy a ProxyPushConsumer.
|
|
Create and destroy a ProxyPullSupplier.
|
|
Create and destroy a ProxyPushSupplier.
|
|
|
|
Create and destroy a the collections used to store Proxy*Consumers.
|
|
|
|
Create and destroy a the collections used to store Proxy*Suppliers.
|
|
|
|
Commit suicide.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Should we send callback disconnect messages when a proxy is disconnected by the client.
|
|
|
|
|
|
|
|
|
|
Access the dispatching module....
|
|
The default implementation is: this->consumer_admin ()->_this (env);.
|
|
The default implementation is: this->supplier_admin ()->_this (env);.
|
|
|
|
|
|
|
|
|
|
|
|
Shutdown any internal threads, cleanup all the internal structures, flush all the messages, etc.
|
|
Access the supplier admin implementation.
|
|
Access the supplier control strategy.
|
|
Access the supplier and consumer POAs from the factory.
|
|
Can the suppliers reconnect to the EC?
|
|
Control the level of concurrency in the supplier sets with delayed operations.
|
|
The ConsumerAdmin implementation.
|
|
Strategies to disconnect misbehaving or destroyed consumers and suppliers.
|
|
|
|
Consumer/Supplier reconnection flags.
|
|
If not zero we send callbacks when a proxy is disconnected.
|
|
The dispatching "module".
|
|
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. |
|
|
|
Flag that indicates if we own the factory.
|
|
The pulling strategy.
|
|
The SupplierAdmin implementation.
|
|
|
|
The POAs used to activate "supplier-side" and "consumer-side" objects.
|
|
|