#include <POA_Cached_Policies.h>
|
Definition at line 53 of file POA_Cached_Policies.h.
00054 { 00055 CLIENT_PROPAGATED_NETWORK_PRIORITY, 00056 SERVER_DECLARED_NETWORK_PRIORITY, 00057 NO_NETWORK_PRIORITY 00058 }; |
|
Definition at line 46 of file POA_Cached_Policies.h.
00047 { 00048 CLIENT_PROPAGATED, 00049 SERVER_DECLARED, 00050 NOT_SPECIFIED 00051 }; |
|
Definition at line 27 of file POA_Cached_Policies.cpp. References TAO_INVALID_PRIORITY.
00027 : 00028 thread_ (::PortableServer::ORB_CTRL_MODEL), 00029 lifespan_ (::PortableServer::TRANSIENT), 00030 id_uniqueness_ (::PortableServer::UNIQUE_ID), 00031 id_assignment_ (::PortableServer::SYSTEM_ID), 00032 implicit_activation_ (::PortableServer::NO_IMPLICIT_ACTIVATION), 00033 servant_retention_ (::PortableServer::RETAIN), 00034 request_processing_ (::PortableServer::USE_ACTIVE_OBJECT_MAP_ONLY), 00035 priority_model_ (Cached_Policies::NOT_SPECIFIED), 00036 server_priority_ (TAO_INVALID_PRIORITY), 00037 network_priority_model_ (Cached_Policies::NO_NETWORK_PRIORITY), 00038 request_diffserv_codepoint_ (0), 00039 reply_diffserv_codepoint_ (0) 00040 { 00041 } |
|
Definition at line 44 of file POA_Cached_Policies.cpp.
00045 { 00046 } |
|
Definition at line 30 of file POA_Cached_Policies.inl. References id_assignment_. Referenced by TAO_Root_POA::system_id(), TAO::Portable_Server::Active_Policy_Strategies::update(), and update_policy().
00031 { 00032 return this->id_assignment_; 00033 } |
|
Definition at line 24 of file POA_Cached_Policies.inl. References id_uniqueness_. Referenced by TAO::Portable_Server::Active_Policy_Strategies::update(), and update_policy().
00025 { 00026 return this->id_uniqueness_; 00027 } |
|
Definition at line 116 of file POA_Cached_Policies.inl. References implicit_activation_.
00117 { 00118 this->implicit_activation_ = value; 00119 } |
|
Definition at line 36 of file POA_Cached_Policies.inl. References implicit_activation_. Referenced by TAO_Root_POA::TAO_Root_POA(), TAO::Portable_Server::Active_Policy_Strategies::update(), and update_policy().
00037 { 00038 return this->implicit_activation_; 00039 } |
|
Definition at line 18 of file POA_Cached_Policies.inl. References lifespan_. Referenced by TAO_Root_POA::persistent(), TAO::Portable_Server::Active_Policy_Strategies::update(), and update_policy().
00019 { 00020 return this->lifespan_; 00021 } |
|
Caches the network priority model that was set using a policy by the server application. Definition at line 96 of file POA_Cached_Policies.inl. References network_priority_model_.
00098 { 00099 this->network_priority_model_ = network_priority_model; 00100 } |
|
Returns the network priority model that was set using a policy by the server application. Definition at line 78 of file POA_Cached_Policies.inl. References network_priority_model_. Referenced by TAO_Network_Priority_Hook::update_network_priority().
00079 { 00080 return this->network_priority_model_; 00081 } |
|
Definition at line 66 of file POA_Cached_Policies.inl. References priority_model_.
00067 { 00068 this->priority_model_ = priority_model; 00069 } |
|
Definition at line 54 of file POA_Cached_Policies.inl. References priority_model_. Referenced by TAO_Root_POA::priority_model().
00055 { 00056 return this->priority_model_; 00057 } |
|
Caches the reply DiffServ codepoint that was set using a policy by the server application. Definition at line 110 of file POA_Cached_Policies.inl. References reply_diffserv_codepoint_.
00111 { 00112 this->reply_diffserv_codepoint_ = diffserv_codepoint; 00113 } |
|
Returns the reply DiffServ codepoint that was set using a policy by the server application. Definition at line 90 of file POA_Cached_Policies.inl. References reply_diffserv_codepoint_. Referenced by TAO_Network_Priority_Hook::update_network_priority().
00091 { 00092 return this->reply_diffserv_codepoint_; 00093 } |
|
Caches the request DiffServ codepoint that was set using a policy by the server application. Definition at line 103 of file POA_Cached_Policies.inl. References request_diffserv_codepoint_.
00105 { 00106 this->request_diffserv_codepoint_ = diffserv_codepoint; 00107 } |
|
Returns the request DiffServ codepoint that was set using a policy by the server application. Definition at line 84 of file POA_Cached_Policies.inl. References request_diffserv_codepoint_. Referenced by TAO_Network_Priority_Hook::update_network_priority().
00085 { 00086 return this->request_diffserv_codepoint_; 00087 } |
|
Definition at line 48 of file POA_Cached_Policies.inl. References request_processing_. Referenced by TAO::Portable_Server::Active_Policy_Strategies::update(), and update_policy().
00049 { 00050 return this->request_processing_; 00051 } |
|
Definition at line 42 of file POA_Cached_Policies.inl. References servant_retention_. Referenced by TAO::Portable_Server::Active_Policy_Strategies::update(), and update_policy().
00043 { 00044 return this->servant_retention_; 00045 } |
|
Definition at line 72 of file POA_Cached_Policies.inl. References server_priority_.
00073 { 00074 this->server_priority_ = priority; 00075 } |
|
Definition at line 60 of file POA_Cached_Policies.inl. References server_priority_. Referenced by TAO_Root_POA::server_priority().
00061 { 00062 return this->server_priority_; 00063 } |
|
Definition at line 12 of file POA_Cached_Policies.inl. Referenced by TAO::Portable_Server::Active_Policy_Strategies::update(), and update_policy().
00013 { 00014 return this->thread_; 00015 } |
|
Update the cached policy values.
Definition at line 49 of file POA_Cached_Policies.cpp. References TAO_POA_Policy_Set::get_policy_by_index(), TAO_POA_Policy_Set::num_policies(), and update_policy(). Referenced by TAO_Root_POA::TAO_Root_POA().
00051 { 00052 for (CORBA::ULong i = 0; i < policy_set.num_policies (); i++) 00053 { 00054 CORBA::Policy_var policy = policy_set.get_policy_by_index (i); 00055 00056 this->update_policy (policy.in () 00057 ); 00058 } 00059 } |
|
Helper method to update a particular policy.
Definition at line 62 of file POA_Cached_Policies.cpp. References id_assignment(), id_assignment_, id_uniqueness(), id_uniqueness_, implicit_activation(), implicit_activation_, CORBA::is_nil(), lifespan(), lifespan_, POA_CORBA::Policy_ptr, request_processing(), request_processing_, servant_retention(), servant_retention_, and thread(). Referenced by update().
00064 { 00065 00066 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) 00067 ::PortableServer::ThreadPolicy_var thread 00068 = ::PortableServer::ThreadPolicy::_narrow (policy 00069 ); 00070 00071 if (!CORBA::is_nil (thread.in ())) 00072 { 00073 this->thread_ = thread->value (); 00074 00075 return; 00076 } 00077 #endif /* TAO_HAS_MINIMUM_POA == 0 */ 00078 00079 #if !defined (CORBA_E_MICRO) 00080 ::PortableServer::LifespanPolicy_var lifespan 00081 = ::PortableServer::LifespanPolicy::_narrow (policy 00082 ); 00083 00084 if (!CORBA::is_nil (lifespan.in ())) 00085 { 00086 this->lifespan_ = lifespan->value (); 00087 00088 return; 00089 } 00090 #endif 00091 00092 #if !defined (CORBA_E_MICRO) 00093 ::PortableServer::IdUniquenessPolicy_var id_uniqueness 00094 = ::PortableServer::IdUniquenessPolicy::_narrow (policy 00095 ); 00096 00097 if (!CORBA::is_nil (id_uniqueness.in ())) 00098 { 00099 this->id_uniqueness_ = id_uniqueness->value (); 00100 00101 return; 00102 } 00103 #endif 00104 00105 #if !defined (CORBA_E_MICRO) 00106 ::PortableServer::IdAssignmentPolicy_var id_assignment 00107 = ::PortableServer::IdAssignmentPolicy::_narrow (policy 00108 ); 00109 00110 if (!CORBA::is_nil (id_assignment.in ())) 00111 { 00112 this->id_assignment_ = id_assignment->value (); 00113 00114 return; 00115 } 00116 #endif 00117 00118 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) 00119 00120 ::PortableServer::ImplicitActivationPolicy_var implicit_activation 00121 = ::PortableServer::ImplicitActivationPolicy::_narrow (policy 00122 ); 00123 00124 if (!CORBA::is_nil (implicit_activation.in ())) 00125 { 00126 this->implicit_activation_ = implicit_activation->value (); 00127 00128 return; 00129 } 00130 00131 ::PortableServer::ServantRetentionPolicy_var servant_retention 00132 = ::PortableServer::ServantRetentionPolicy::_narrow (policy 00133 ); 00134 00135 if (!CORBA::is_nil (servant_retention.in ())) 00136 { 00137 this->servant_retention_ = servant_retention->value (); 00138 00139 return; 00140 } 00141 00142 ::PortableServer::RequestProcessingPolicy_var request_processing 00143 = ::PortableServer::RequestProcessingPolicy::_narrow (policy 00144 ); 00145 00146 if (!CORBA::is_nil (request_processing.in ())) 00147 { 00148 this->request_processing_ = request_processing->value (); 00149 00150 return; 00151 } 00152 00153 #endif /* TAO_HAS_MINIMUM_POA == 0 */ 00154 00155 #if defined (CORBA_E_MICRO) 00156 ACE_UNUSED_ARG (policy); 00157 #endif 00158 } |
|
Definition at line 130 of file POA_Cached_Policies.h. Referenced by id_assignment(), and update_policy(). |
|
Definition at line 128 of file POA_Cached_Policies.h. Referenced by id_uniqueness(), and update_policy(). |
|
Definition at line 132 of file POA_Cached_Policies.h. Referenced by implicit_activation(), and update_policy(). |
|
Definition at line 126 of file POA_Cached_Policies.h. Referenced by lifespan(), and update_policy(). |
|
Definition at line 142 of file POA_Cached_Policies.h. Referenced by network_priority_model(). |
|
Definition at line 138 of file POA_Cached_Policies.h. Referenced by priority_model(). |
|
Definition at line 146 of file POA_Cached_Policies.h. Referenced by reply_diffserv_codepoint(). |
|
Definition at line 144 of file POA_Cached_Policies.h. Referenced by request_diffserv_codepoint(). |
|
Definition at line 136 of file POA_Cached_Policies.h. Referenced by request_processing(), and update_policy(). |
|
Definition at line 134 of file POA_Cached_Policies.h. Referenced by servant_retention(), and update_policy(). |
|
Definition at line 140 of file POA_Cached_Policies.h. Referenced by server_priority(). |
|
Definition at line 124 of file POA_Cached_Policies.h. |