Properties.cpp

Go to the documentation of this file.
00001 // $Id: Properties.cpp 81424 2008-04-24 14:02:21Z johnnyw $
00002 
00003 #include "orbsvcs/Notify/Properties.h"
00004 #include "orbsvcs/NotifyExtC.h"
00005 #include "tao/debug.h"
00006 
00007 #if ! defined (__ACE_INLINE__)
00008 #include "orbsvcs/Notify/Properties.inl"
00009 #endif /* __ACE_INLINE__ */
00010 
00011 ACE_RCSID (Notify,
00012            TAO_Notify_Properties,
00013            "$Id: Properties.cpp 81424 2008-04-24 14:02:21Z johnnyw $")
00014 
00015 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00016 
00017 TAO_Notify_Properties::TAO_Notify_Properties (void)
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 }
00038 
00039 TAO_Notify_Properties::~TAO_Notify_Properties ()
00040 {
00041 }
00042 
00043 TAO_Notify_Properties *
00044 TAO_Notify_Properties::instance (void)
00045 {
00046   return ACE_Unmanaged_Singleton<TAO_Notify_Properties,
00047                                  TAO_SYNCH_MUTEX>::instance ();
00048 }
00049 
00050 void
00051 TAO_Notify_Properties::close (void)
00052 {
00053   ACE_Unmanaged_Singleton<TAO_Notify_Properties,
00054                           TAO_SYNCH_MUTEX>::close ();
00055 }
00056 
00057 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:45:29 2010 for TAO_CosNotification by  doxygen 1.4.7