#include <RT_Policy_i.h>
Inheritance diagram for TAO_PriorityBandedConnectionPolicy:
RT CORBA provides facility for a client to communicate with a server via multiple connections, aka bands, with each connection handling invocations that are made at a different CORBA priority. This policy allows the specification of the number of such bands and their priorities.
Definition at line 221 of file RT_Policy_i.h.
|
Constructor.
Definition at line 304 of file RT_Policy_i.cpp. References RTCORBA::PriorityBands.
00305 : ::CORBA::Object () 00306 , ::CORBA::Policy () 00307 , ::CORBA::LocalObject () 00308 , RTCORBA::PriorityBandedConnectionPolicy () 00309 , TAO_Local_RefCounted_Object () 00310 , priority_bands_ (bands) 00311 { 00312 } |
|
Copy constructor.
Definition at line 314 of file RT_Policy_i.cpp.
00315 : ::CORBA::Object () 00316 , ::CORBA::Policy () 00317 , ::CORBA::LocalObject () 00318 , RTCORBA::PriorityBandedConnectionPolicy () 00319 , TAO_Local_RefCounted_Object () 00320 , priority_bands_ (rhs.priority_bands_) 00321 { 00322 } |
|
Protected destructor to enforce proper memory management of this reference counted object. Definition at line 328 of file RT_Policy_i.cpp.
00329 { 00330 } |
|
Definition at line 324 of file RT_Policy_i.cpp.
00325 { 00326 } |
|
Implements CORBA::Policy. Definition at line 396 of file RT_Policy_i.cpp. References TAO_CACHED_POLICY_RT_PRIORITY_BANDED_CONNECTION.
00397 { 00398 return TAO_CACHED_POLICY_RT_PRIORITY_BANDED_CONNECTION; 00399 } |
|
This method reads the object state from a CDR representation.
Implements CORBA::Policy. Definition at line 390 of file RT_Policy_i.cpp. References priority_bands_.
00391 { 00392 return in_cdr >> priority_bands_; 00393 } |
|
This method writes a CDR representation of the current object.
Implements CORBA::Policy. Definition at line 384 of file RT_Policy_i.cpp. References priority_bands_.
00385 { 00386 return out_cdr << priority_bands_; 00387 } |
|
Implements CORBA::Policy. Definition at line 402 of file RT_Policy_i.cpp. References TAO_POLICY_CLIENT_EXPOSED, and TAO_POLICY_DEFAULT_SCOPE.
00403 { 00404 return static_cast<TAO_Policy_Scope> (TAO_POLICY_DEFAULT_SCOPE | 00405 TAO_POLICY_CLIENT_EXPOSED); 00406 } |
|
Implements CORBA::Policy. Definition at line 367 of file RT_Policy_i.cpp. References ACE_NEW_THROW_EX.
00368 { 00369 TAO_PriorityBandedConnectionPolicy *tmp = 0; 00370 ACE_NEW_THROW_EX (tmp, 00371 TAO_PriorityBandedConnectionPolicy (*this), 00372 CORBA::NO_MEMORY (TAO::VMCID, 00373 CORBA::COMPLETED_NO)); 00374 00375 return tmp; 00376 } |
|
Helper method for the implementation of CORBA::ORB::create_policy. Definition at line 333 of file RT_Policy_i.cpp. References ACE_NEW_THROW_EX, and RTCORBA::PriorityBands. Referenced by TAO_RT_PolicyFactory::create_policy().
00334 { 00335 RTCORBA::PriorityBands *value = 0; 00336 if ((val >>= value) == 0) 00337 throw ::CORBA::PolicyError (CORBA::BAD_POLICY_VALUE); 00338 00339 TAO_PriorityBandedConnectionPolicy *tmp = 0; 00340 ACE_NEW_THROW_EX (tmp, 00341 TAO_PriorityBandedConnectionPolicy (*value), 00342 CORBA::NO_MEMORY (TAO::VMCID, 00343 CORBA::COMPLETED_NO)); 00344 00345 return tmp; 00346 } |
|
Implements CORBA::Policy. Definition at line 379 of file RT_Policy_i.cpp.
00380 { 00381 } |
|
Implements CORBA::Policy. Definition at line 361 of file RT_Policy_i.cpp.
00362 {
00363 return RTCORBA::PRIORITY_BANDED_CONNECTION_POLICY_TYPE;
00364 }
|
|
Definition at line 349 of file RT_Policy_i.cpp. References ACE_NEW_THROW_EX, and RTCORBA::PriorityBands.
00350 { 00351 RTCORBA::PriorityBands *tmp; 00352 ACE_NEW_THROW_EX (tmp, 00353 RTCORBA::PriorityBands (this->priority_bands_), 00354 CORBA::NO_MEMORY (TAO::VMCID, 00355 CORBA::COMPLETED_NO)); 00356 00357 return tmp; 00358 } |
|
Accessor to the underlying priority bands of the policy (does not make a copy like the idl accessor implementation below.) Definition at line 409 of file RT_Policy_i.cpp. References priority_bands_. Referenced by TAO_RT_Stub::effective_priority_banded_connection(), and TAO_RT_Protocols_Hooks::get_selector_bands_policy_hook().
00410 { 00411 return priority_bands_; 00412 } |
|
This constructor is used by TAO_RT_PolicyFactory when decoding policies from tagged components in an IOR. Definition at line 271 of file RT_Policy_i.h. |
|
Attribute.
Definition at line 277 of file RT_Policy_i.h. Referenced by _tao_decode(), _tao_encode(), and priority_bands_rep(). |