diff options
author | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-02 17:16:30 +0000 |
---|---|---|
committer | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-02 17:16:30 +0000 |
commit | a75f17f63f4e3083c703e51253159d1489f9c2c4 (patch) | |
tree | b536c5f0ff985a0d5f6037f01b6e698b191a22e8 | |
parent | 4355f68db29b6b70e5000e2af31001e8b48592f3 (diff) | |
download | ATCD-a75f17f63f4e3083c703e51253159d1489f9c2c4.tar.gz |
adding DS library
-rw-r--r-- | modules/TAO/tao/PortableServer/Root_POA.cpp | 10 | ||||
-rw-r--r-- | modules/TAO/tao/PortableServer/Root_POA.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/modules/TAO/tao/PortableServer/Root_POA.cpp b/modules/TAO/tao/PortableServer/Root_POA.cpp index 0179dcf5925..1f1b1952237 100644 --- a/modules/TAO/tao/PortableServer/Root_POA.cpp +++ b/modules/TAO/tao/PortableServer/Root_POA.cpp @@ -32,6 +32,7 @@ #include "tao/PortableServer/ImplicitActivationStrategy.h" #include "tao/PortableServer/ThreadStrategy.h" #include "tao/PortableServer/Acceptor_Filter_Factory.h" +#include "tao/PortableServer/Network_Priority_Hook.h" #include "tao/StringSeqC.h" #include "tao/PortableInterceptorC.h" @@ -211,6 +212,7 @@ TAO_Root_POA::TAO_Root_POA (const TAO_Root_POA::String &name, policies_ (policies), ort_adapter_ (0), adapter_state_ (PortableInterceptor::HOLDING), + network_priority_hook_ (0), #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) @@ -244,6 +246,14 @@ TAO_Root_POA::TAO_Root_POA (const TAO_Root_POA::String &name, // a cache. this->cached_policies_.update (this->policies_); + if (this->network_priority_hook_ == 0) + this->network_priority_hook_ + = ACE_Dynamic_Service<TAO_Network_Priority_Hook>::instance ( + "TAO_Network_Priority_Hook"); + + this->network_priority_hook_->update_network_priority ( + *this, this->policies_); + #if (TAO_HAS_MINIMUM_POA == 1) // If this is the RootPOA, set the value of the ImplicitActivationPolicy // to IMPLICIT_ACTIVATION since it is impossible to pass the policy diff --git a/modules/TAO/tao/PortableServer/Root_POA.h b/modules/TAO/tao/PortableServer/Root_POA.h index fcf3a2b0bb4..3cec040e7a1 100644 --- a/modules/TAO/tao/PortableServer/Root_POA.h +++ b/modules/TAO/tao/PortableServer/Root_POA.h @@ -74,6 +74,7 @@ class TAO_Acceptor_Filter_Factory; class TAO_POAManager_Factory; #endif +class TAO_Network_Priority_Hook; class TAO_Acceptor_Registry; class TAO_IORInfo; class TAO_Regular_POA; @@ -926,6 +927,8 @@ protected: TAO::Portable_Server::Cached_Policies cached_policies_; + TAO_Network_Priority_Hook *network_priority_hook_; + TAO::Portable_Server::Active_Policy_Strategies active_policy_strategies_; #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) |