TAO_Notify_Properties Class Reference

Global properties that strategize Notify's run-time behaviour. More...

#include <Properties.h>

Collaboration diagram for TAO_Notify_Properties:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Notify_Properties (void)
 Constructor.
 ~TAO_Notify_Properties ()
 Destructor.
TAO_Notify_Factoryfactory (void)
void factory (TAO_Notify_Factory *factory)
TAO_Notify_Builderbuilder (void)
void builder (TAO_Notify_Builder *builder)
CORBA::ORB_ptr orb (void)
void orb (CORBA::ORB_ptr orb)
CORBA::ORB_ptr dispatching_orb (void)
void dispatching_orb (CORBA::ORB_ptr dispatching_orb)
PortableServer::POA_ptr default_poa (void)
void default_poa (PortableServer::POA_ptr default_poa)
CORBA::Boolean asynch_updates (void)
void asynch_updates (CORBA::Boolean asynch_updates)
bool allow_reconnect (void)
void allow_reconnect (bool b)
CORBA::Boolean updates (void)
void updates (CORBA::Boolean updates)
bool separate_dispatching_orb (void)
void separate_dispatching_orb (bool b)
const CosNotification::QoSPropertiesdefault_event_channel_qos_properties (void)
void default_event_channel_qos_properties (const CosNotification::QoSProperties &ec_qos)
const CosNotification::QoSPropertiesdefault_supplier_admin_qos_properties (void)
void default_supplier_admin_qos_properties (const CosNotification::QoSProperties &sa_qos)
const CosNotification::QoSPropertiesdefault_consumer_admin_qos_properties (void)
void default_consumer_admin_qos_properties (const CosNotification::QoSProperties &ca_qos)
const CosNotification::QoSPropertiesdefault_proxy_supplier_qos_properties (void)
void default_proxy_supplier_qos_properties (const CosNotification::QoSProperties &ps_qos)
const CosNotification::QoSPropertiesdefault_proxy_consumer_qos_properties (void)
void default_proxy_consumer_qos_properties (const CosNotification::QoSProperties &pc_qos)

Static Public Member Functions

static TAO_Notify_Propertiesinstance (void)
 Return a singleton instance of this class.
static void close (void)

Protected Attributes

TAO_Notify_Factoryfactory_
 Object Factory.
TAO_Notify_Builderbuilder_
 Object Builder.
CORBA::ORB_var orb_
 ORB.
CORBA::ORB_var dispatching_orb_
 dispatching orb
PortableServer::POA_var default_poa_
 POA.
CORBA::Boolean asynch_updates_
 True if send asynch updates.
bool allow_reconnect_
 True if clients can reconnect to proxies.
bool separate_dispatching_orb_
 True is separate dispatching orb.
CORBA::Boolean updates_
 True if updates are enabled (default).
ACE_Time_Value update_period_
 The Update period for updates.
CosNotification::QoSProperties ec_qos_
 The default EC QoS Properties.
CosNotification::QoSProperties sa_qos_
 The default SA QoS Properties.
CosNotification::QoSProperties ca_qos_
 The default CA QoS Properties.
CosNotification::QoSProperties ps_qos_
 The default PS QoS Properties.
CosNotification::QoSProperties pc_qos_
 The default PC QoS Properties.

Detailed Description

Global properties that strategize Notify's run-time behaviour.

Definition at line 40 of file Properties.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Properties::TAO_Notify_Properties ( void   ) 

Constructor.

Definition at line 17 of file Properties.cpp.

References ACE_DEBUG, LM_DEBUG, CORBA::string_dup(), and TAO_debug_level.

00018   : factory_ (0)
00019   , builder_ (0)
00020   , orb_(0)
00021   , dispatching_orb_ (0)
00022   , asynch_updates_ (false)
00023   , allow_reconnect_ (false)
00024   , separate_dispatching_orb_ (false)
00025   , updates_ (1)
00026 {
00027   // In case no conf. file is specified, the EC will default to reactive concurrency.
00028   NotifyExt::ThreadPoolParams tp_params =
00029     {NotifyExt::CLIENT_PROPAGATED,0, 0, 0, 0, 0, 0, 0,0};
00030 
00031   this->ec_qos_.length (1);
00032   this->ec_qos_[0].name = CORBA::string_dup (NotifyExt::ThreadPool);
00033   this->ec_qos_[0].value <<= tp_params;
00034 
00035   if (TAO_debug_level > 1)
00036     ACE_DEBUG ((LM_DEBUG, "in TAO_Properties ctos %x\n", this));
00037 }

TAO_Notify_Properties::~TAO_Notify_Properties (  ) 

Destructor.

Definition at line 39 of file Properties.cpp.

00040 {
00041 }


Member Function Documentation

ACE_INLINE void TAO_Notify_Properties::allow_reconnect ( bool  b  ) 

Definition at line 86 of file Properties.inl.

References allow_reconnect_.

00087 {
00088   this->allow_reconnect_ = b;
00089 }

ACE_INLINE bool TAO_Notify_Properties::allow_reconnect ( void   ) 

Definition at line 80 of file Properties.inl.

References allow_reconnect_.

Referenced by TAO_Notify_ProxySupplier::connect(), TAO_Notify_ProxyConsumer::connect(), and TAO_CosNotify_Service::init().

00081 {
00082   return this->allow_reconnect_;
00083 }

ACE_INLINE void TAO_Notify_Properties::asynch_updates ( CORBA::Boolean  asynch_updates  ) 

Definition at line 74 of file Properties.inl.

References asynch_updates_.

00075 {
00076   this->asynch_updates_ = asynch_updates;
00077 }

ACE_INLINE CORBA::Boolean TAO_Notify_Properties::asynch_updates ( void   ) 

Definition at line 68 of file Properties.inl.

References asynch_updates_.

Referenced by TAO_CosNotify_Service::init().

00069 {
00070   return this->asynch_updates_;
00071 }

ACE_INLINE void TAO_Notify_Properties::builder ( TAO_Notify_Builder builder  ) 

Definition at line 26 of file Properties.inl.

References builder(), and builder_.

00027 {
00028   this->builder_ = builder;
00029 }

ACE_INLINE TAO_Notify_Builder * TAO_Notify_Properties::builder ( void   ) 

Definition at line 20 of file Properties.inl.

References builder_.

Referenced by builder(), TAO_Notify_EventChannelFactory::create_channel(), TAO_Notify_EventChannel::init(), TAO_CosNotify_Service::init_i(), TAO_CosNotify_Service::init_i2(), TAO_Notify_EventChannelFactory::load_child(), TAO_Notify_EventChannel::load_child(), TAO_Notify_SupplierAdmin::load_proxy(), TAO_Notify_ConsumerAdmin::load_proxy(), TAO_Notify_EventChannel::new_for_consumers(), TAO_Notify_EventChannel::new_for_suppliers(), TAO_Notify_SupplierAdmin::obtain_notification_push_consumer(), TAO_Notify_SupplierAdmin::obtain_notification_push_consumer_with_qos(), TAO_Notify_ConsumerAdmin::obtain_notification_push_supplier(), TAO_Notify_ConsumerAdmin::obtain_notification_push_supplier_with_qos(), TAO_Notify_SupplierAdmin::obtain_push_consumer(), TAO_Notify_ConsumerAdmin::obtain_push_supplier(), and TAO_Notify_Object::set_qos().

00021 {
00022   return this->builder_;
00023 }

void TAO_Notify_Properties::close ( void   )  [static]

Definition at line 51 of file Properties.cpp.

References TAO_SYNCH_MUTEX.

Referenced by TAO_CosNotify_Service::fini().

ACE_INLINE void TAO_Notify_Properties::default_consumer_admin_qos_properties ( const CosNotification::QoSProperties ca_qos  ) 

Definition at line 146 of file Properties.inl.

References ca_qos_.

00147 {
00148   this->ca_qos_ = ca_qos;
00149 }

ACE_INLINE const CosNotification::QoSProperties & TAO_Notify_Properties::default_consumer_admin_qos_properties ( void   ) 

Definition at line 140 of file Properties.inl.

References ca_qos_.

Referenced by TAO_CosNotify_Service::init(), and TAO_Notify_ConsumerAdmin::init().

00141 {
00142   return this->ca_qos_;
00143 }

ACE_INLINE void TAO_Notify_Properties::default_event_channel_qos_properties ( const CosNotification::QoSProperties ec_qos  ) 

Definition at line 122 of file Properties.inl.

References ec_qos_.

00123 {
00124   this->ec_qos_ = ec_qos;
00125 }

ACE_INLINE const CosNotification::QoSProperties & TAO_Notify_Properties::default_event_channel_qos_properties ( void   ) 

Definition at line 116 of file Properties.inl.

References ec_qos_.

Referenced by TAO_Notify_EventChannel::init(), and TAO_CosNotify_Service::init().

00117 {
00118   return this->ec_qos_;
00119 }

ACE_INLINE void TAO_Notify_Properties::default_poa ( PortableServer::POA_ptr  default_poa  ) 

Definition at line 62 of file Properties.inl.

References default_poa_.

00063 {
00064   this->default_poa_ = PortableServer::POA::_duplicate (default_poa);
00065 }

ACE_INLINE PortableServer::POA_ptr TAO_Notify_Properties::default_poa ( void   ) 

Definition at line 56 of file Properties.inl.

Referenced by TAO_Notify_RT_Builder::apply_lane_concurrency(), TAO_Notify_RT_Builder::apply_thread_pool_concurrency(), TAO_Notify_EventChannelFactory::destroy(), and TAO_Notify_EventChannel::init().

00057 {
00058   return PortableServer::POA::_duplicate (this->default_poa_.in ());
00059 }

ACE_INLINE void TAO_Notify_Properties::default_proxy_consumer_qos_properties ( const CosNotification::QoSProperties pc_qos  ) 

Definition at line 170 of file Properties.inl.

References pc_qos_.

00171 {
00172   this->pc_qos_ = pc_qos;
00173 }

ACE_INLINE const CosNotification::QoSProperties & TAO_Notify_Properties::default_proxy_consumer_qos_properties ( void   ) 

Definition at line 164 of file Properties.inl.

References pc_qos_.

Referenced by TAO_Notify_ProxyConsumer::init(), and TAO_CosNotify_Service::init().

00165 {
00166   return this->pc_qos_;
00167 }

ACE_INLINE void TAO_Notify_Properties::default_proxy_supplier_qos_properties ( const CosNotification::QoSProperties ps_qos  ) 

Definition at line 158 of file Properties.inl.

References ps_qos_.

00159 {
00160   this->ps_qos_ = ps_qos;
00161 }

ACE_INLINE const CosNotification::QoSProperties & TAO_Notify_Properties::default_proxy_supplier_qos_properties ( void   ) 

Definition at line 152 of file Properties.inl.

References ps_qos_.

Referenced by TAO_Notify_ProxySupplier::init(), and TAO_CosNotify_Service::init().

00153 {
00154   return this->ps_qos_;
00155 }

ACE_INLINE void TAO_Notify_Properties::default_supplier_admin_qos_properties ( const CosNotification::QoSProperties sa_qos  ) 

Definition at line 134 of file Properties.inl.

References sa_qos_.

00135 {
00136   this->sa_qos_ = sa_qos;
00137 }

ACE_INLINE const CosNotification::QoSProperties & TAO_Notify_Properties::default_supplier_admin_qos_properties ( void   ) 

Definition at line 128 of file Properties.inl.

References sa_qos_.

Referenced by TAO_Notify_SupplierAdmin::init(), and TAO_CosNotify_Service::init().

00129 {
00130   return this->sa_qos_;
00131 }

ACE_INLINE void TAO_Notify_Properties::dispatching_orb ( CORBA::ORB_ptr  dispatching_orb  ) 

Definition at line 50 of file Properties.inl.

References CORBA::ORB::_duplicate(), dispatching_orb(), and dispatching_orb_.

ACE_INLINE CORBA::ORB_ptr TAO_Notify_Properties::dispatching_orb ( void   ) 

Definition at line 38 of file Properties.inl.

References CORBA::ORB::_duplicate(), dispatching_orb_, and TAO_Pseudo_Var_T< T >::in().

Referenced by dispatching_orb(), TAO_CosNotify_Service::fini(), TAO_Notify_StructuredPushConsumer::init(), TAO_Notify_SequencePushConsumer::init(), TAO_Notify_PushConsumer::init(), and TAO_CosNotify_Service::init_service().

00039 {
00040   return CORBA::ORB::_duplicate (dispatching_orb_.in ());
00041 }

ACE_INLINE void TAO_Notify_Properties::factory ( TAO_Notify_Factory factory  ) 

Definition at line 14 of file Properties.inl.

References factory(), and factory_.

00015 {
00016   this->factory_ = factory;
00017 }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_Notify_Factory * TAO_Notify_Properties::factory ( void   ) 

Definition at line 8 of file Properties.inl.

References factory_.

Referenced by TAO_Notify_Proxy_Builder_T< PROXY_IMPL, PROXY, PROXY_PTR, PROXY_VAR, PARENT >::build(), TAO_Notify_Builder::build_consumer_admin(), TAO_Notify_Builder::build_event_channel(), TAO_Notify_Builder::build_event_channel_factory(), TAO_Notify_Builder::build_supplier_admin(), factory(), TAO_Notify_Event_Map_Entry_T< PROXY >::init(), TAO_Notify_Container_T< TYPE >::init(), TAO_CosNotify_Service::init_i(), and TAO_CosNotify_Service::init_i2().

00009 {
00010   return this->factory_;
00011 }

TAO_Notify_Properties * TAO_Notify_Properties::instance ( void   )  [static]

Return a singleton instance of this class.

Definition at line 44 of file Properties.cpp.

References TAO_SYNCH_MUTEX.

Referenced by TAO_Notify_RT_Builder::apply_lane_concurrency(), TAO_Notify_RT_Builder::apply_thread_pool_concurrency(), TAO_Notify_Proxy_Builder_T< PROXY_IMPL, PROXY, PROXY_PTR, PROXY_VAR, PARENT >::build(), TAO_Notify_Builder::build_consumer_admin(), TAO_Notify_Builder::build_event_channel(), TAO_Notify_Builder::build_event_channel_factory(), TAO_Notify_Builder::build_supplier_admin(), TAO_Notify_ProxySupplier::connect(), TAO_Notify_ProxyConsumer::connect(), TAO_Notify_EventChannelFactory::create_channel(), TAO_Notify_EventChannelFactory::destroy(), TAO_CosNotify_Service::fini(), TAO_Notify_StructuredPushSupplier::get_ior(), TAO_Notify_StructuredPushConsumer::get_ior(), TAO_Notify_SequencePushSupplier::get_ior(), TAO_Notify_SequencePushConsumer::get_ior(), TAO_Notify_PushSupplier::get_ior(), TAO_Notify_PushConsumer::get_ior(), TAO_Notify_ThreadPool_Task::init(), TAO_Notify_SupplierAdmin::init(), TAO_Notify_StructuredPushConsumer::init(), TAO_Notify_SequencePushConsumer::init(), TAO_Notify_PushConsumer::init(), TAO_Notify_ProxySupplier::init(), TAO_Notify_ProxyConsumer::init(), TAO_Notify_EventChannel::init(), TAO_Notify_Event_Map_Entry_T< PROXY >::init(), TAO_CosNotify_Service::init(), TAO_Notify_Container_T< TYPE >::init(), TAO_Notify_ConsumerAdmin::init(), TAO_CosNotify_Service::init_i(), TAO_CosNotify_Service::init_i2(), TAO_CosNotify_Service::init_service(), TAO_Notify_StructuredProxyPushSupplier::load_attrs(), TAO_Notify_StructuredProxyPushConsumer::load_attrs(), TAO_Notify_SequenceProxyPushSupplier::load_attrs(), TAO_Notify_SequenceProxyPushConsumer::load_attrs(), TAO_Notify_ProxyPushSupplier::load_attrs(), TAO_Notify_ProxyPushConsumer::load_attrs(), TAO_Notify_FilterAdmin::load_child(), TAO_Notify_EventChannelFactory::load_child(), TAO_Notify_EventChannel::load_child(), TAO_Notify_SupplierAdmin::load_proxy(), TAO_Notify_ConsumerAdmin::load_proxy(), TAO_Notify_EventChannel::new_for_consumers(), TAO_Notify_EventChannel::new_for_suppliers(), TAO_Notify_SupplierAdmin::obtain_notification_push_consumer(), TAO_Notify_SupplierAdmin::obtain_notification_push_consumer_with_qos(), TAO_Notify_ConsumerAdmin::obtain_notification_push_supplier(), TAO_Notify_ConsumerAdmin::obtain_notification_push_supplier_with_qos(), TAO_Notify_SupplierAdmin::obtain_push_consumer(), TAO_Notify_ConsumerAdmin::obtain_push_supplier(), TAO_Notify_FilterAdmin::save_persistent(), TAO_Notify::Reconnection_Registry::send_reconnect(), TAO_Notify_Object::set_qos(), TAO_Notify_Timer_Reactor::TAO_Notify_Timer_Reactor(), and TAO_Notify_Proxy::types_changed().

ACE_INLINE void TAO_Notify_Properties::orb ( CORBA::ORB_ptr  orb  ) 

Definition at line 44 of file Properties.inl.

References CORBA::ORB::_duplicate(), orb(), and orb_.

00045 {
00046   orb_ = CORBA::ORB::_duplicate (orb);
00047 }

ACE_INLINE CORBA::ORB_ptr TAO_Notify_Properties::orb ( void   ) 

Definition at line 32 of file Properties.inl.

References CORBA::ORB::_duplicate(), TAO_Pseudo_Var_T< T >::in(), and orb_.

Referenced by TAO_Notify_EventChannelFactory::destroy(), TAO_Notify_StructuredPushSupplier::get_ior(), TAO_Notify_StructuredPushConsumer::get_ior(), TAO_Notify_SequencePushSupplier::get_ior(), TAO_Notify_SequencePushConsumer::get_ior(), TAO_Notify_PushSupplier::get_ior(), TAO_Notify_PushConsumer::get_ior(), TAO_Notify_ThreadPool_Task::init(), TAO_Notify_StructuredPushConsumer::init(), TAO_Notify_SequencePushConsumer::init(), TAO_Notify_PushConsumer::init(), TAO_Notify_StructuredProxyPushSupplier::load_attrs(), TAO_Notify_StructuredProxyPushConsumer::load_attrs(), TAO_Notify_SequenceProxyPushSupplier::load_attrs(), TAO_Notify_SequenceProxyPushConsumer::load_attrs(), TAO_Notify_ProxyPushSupplier::load_attrs(), TAO_Notify_ProxyPushConsumer::load_attrs(), TAO_Notify_FilterAdmin::load_child(), orb(), TAO_Notify_FilterAdmin::save_persistent(), TAO_Notify::Reconnection_Registry::send_reconnect(), and TAO_Notify_Timer_Reactor::TAO_Notify_Timer_Reactor().

00033 {
00034   return CORBA::ORB::_duplicate (orb_.in ());
00035 }

ACE_INLINE void TAO_Notify_Properties::separate_dispatching_orb ( bool  b  ) 

Definition at line 98 of file Properties.inl.

References separate_dispatching_orb_.

00099 {
00100   this->separate_dispatching_orb_ = b;
00101 }

ACE_INLINE bool TAO_Notify_Properties::separate_dispatching_orb ( void   ) 

Definition at line 92 of file Properties.inl.

References separate_dispatching_orb_.

Referenced by TAO_CosNotify_Service::init().

00093 {
00094   return this->separate_dispatching_orb_;
00095 }

ACE_INLINE void TAO_Notify_Properties::updates ( CORBA::Boolean  updates  ) 

Definition at line 110 of file Properties.inl.

References updates_.

00111 {
00112   this->updates_ = updates;
00113 }

ACE_INLINE CORBA::Boolean TAO_Notify_Properties::updates ( void   ) 

Definition at line 104 of file Properties.inl.

References updates_.

Referenced by TAO_CosNotify_Service::init(), and TAO_Notify_Proxy::types_changed().

00105 {
00106   return this->updates_;
00107 }


Member Data Documentation

bool TAO_Notify_Properties::allow_reconnect_ [protected]

True if clients can reconnect to proxies.

Definition at line 131 of file Properties.h.

Referenced by allow_reconnect().

CORBA::Boolean TAO_Notify_Properties::asynch_updates_ [protected]

True if send asynch updates.

Definition at line 128 of file Properties.h.

Referenced by asynch_updates().

TAO_Notify_Builder* TAO_Notify_Properties::builder_ [protected]

Object Builder.

Definition at line 116 of file Properties.h.

Referenced by builder().

CosNotification::QoSProperties TAO_Notify_Properties::ca_qos_ [protected]

The default CA QoS Properties.

Definition at line 149 of file Properties.h.

Referenced by default_consumer_admin_qos_properties().

PortableServer::POA_var TAO_Notify_Properties::default_poa_ [protected]

POA.

Definition at line 125 of file Properties.h.

Referenced by default_poa().

CORBA::ORB_var TAO_Notify_Properties::dispatching_orb_ [protected]

dispatching orb

Definition at line 122 of file Properties.h.

Referenced by dispatching_orb().

CosNotification::QoSProperties TAO_Notify_Properties::ec_qos_ [protected]

The default EC QoS Properties.

Definition at line 143 of file Properties.h.

Referenced by default_event_channel_qos_properties().

TAO_Notify_Factory* TAO_Notify_Properties::factory_ [protected]

Object Factory.

Definition at line 113 of file Properties.h.

Referenced by factory().

CORBA::ORB_var TAO_Notify_Properties::orb_ [protected]

ORB.

Definition at line 119 of file Properties.h.

Referenced by orb().

CosNotification::QoSProperties TAO_Notify_Properties::pc_qos_ [protected]

The default PC QoS Properties.

Definition at line 155 of file Properties.h.

Referenced by default_proxy_consumer_qos_properties().

CosNotification::QoSProperties TAO_Notify_Properties::ps_qos_ [protected]

The default PS QoS Properties.

Definition at line 152 of file Properties.h.

Referenced by default_proxy_supplier_qos_properties().

CosNotification::QoSProperties TAO_Notify_Properties::sa_qos_ [protected]

The default SA QoS Properties.

Definition at line 146 of file Properties.h.

Referenced by default_supplier_admin_qos_properties().

bool TAO_Notify_Properties::separate_dispatching_orb_ [protected]

True is separate dispatching orb.

Definition at line 134 of file Properties.h.

Referenced by separate_dispatching_orb().

ACE_Time_Value TAO_Notify_Properties::update_period_ [protected]

The Update period for updates.

Definition at line 140 of file Properties.h.

CORBA::Boolean TAO_Notify_Properties::updates_ [protected]

True if updates are enabled (default).

Definition at line 137 of file Properties.h.

Referenced by updates().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:46:24 2010 for TAO_CosNotification by  doxygen 1.4.7