RTCORBA::PriorityBandedConnectionPolicy implementation. More...
#include <RT_Policy_i.h>
Public Member Functions | |
TAO_PriorityBandedConnectionPolicy (const RTCORBA::PriorityBands &bands) | |
Constructor. | |
TAO_PriorityBandedConnectionPolicy (const TAO_PriorityBandedConnectionPolicy &rhs) | |
Copy constructor. | |
RTCORBA::PriorityBands & | priority_bands_rep (void) |
RTCORBA::PriorityBands * | priority_bands (void) |
CORBA::PolicyType | policy_type (void) |
CORBA::Policy_ptr | copy (void) |
void | destroy (void) |
CORBA::Boolean | _tao_encode (TAO_OutputCDR &out_cdr) |
This method writes a CDR representation of the current object. | |
CORBA::Boolean | _tao_decode (TAO_InputCDR &in_cdr) |
This method reads the object state from a CDR representation. | |
TAO_Cached_Policy_Type | _tao_cached_type (void) const |
TAO_Policy_Scope | _tao_scope (void) const |
Static Public Member Functions | |
static CORBA::Policy_ptr | create (const CORBA::Any &val) |
Protected Member Functions | |
virtual | ~TAO_PriorityBandedConnectionPolicy (void) |
TAO_PriorityBandedConnectionPolicy (void) | |
Private Attributes | |
RTCORBA::PriorityBands | priority_bands_ |
Attribute. | |
Friends | |
class | TAO_RT_PolicyFactory |
RTCORBA::PriorityBandedConnectionPolicy implementation.
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.
TAO_PriorityBandedConnectionPolicy::TAO_PriorityBandedConnectionPolicy | ( | const RTCORBA::PriorityBands & | bands | ) |
Constructor.
Definition at line 297 of file RT_Policy_i.cpp.
: ::CORBA::Object () , ::CORBA::Policy () , RTCORBA::PriorityBandedConnectionPolicy () , ::CORBA::LocalObject () , priority_bands_ (bands) { }
TAO_PriorityBandedConnectionPolicy::TAO_PriorityBandedConnectionPolicy | ( | const TAO_PriorityBandedConnectionPolicy & | rhs | ) |
Copy constructor.
Definition at line 306 of file RT_Policy_i.cpp.
: ::CORBA::Object () , ::CORBA::Policy () , RTCORBA::PriorityBandedConnectionPolicy () , ::CORBA::LocalObject () , priority_bands_ (rhs.priority_bands_) { }
TAO_PriorityBandedConnectionPolicy::~TAO_PriorityBandedConnectionPolicy | ( | void | ) | [protected, virtual] |
Protected destructor to enforce proper memory management of this reference counted object.
Definition at line 319 of file RT_Policy_i.cpp.
{ }
TAO_PriorityBandedConnectionPolicy::TAO_PriorityBandedConnectionPolicy | ( | void | ) | [protected] |
Definition at line 315 of file RT_Policy_i.cpp.
{ }
TAO_Cached_Policy_Type TAO_PriorityBandedConnectionPolicy::_tao_cached_type | ( | void | ) | const |
Definition at line 387 of file RT_Policy_i.cpp.
{
return TAO_CACHED_POLICY_RT_PRIORITY_BANDED_CONNECTION;
}
CORBA::Boolean TAO_PriorityBandedConnectionPolicy::_tao_decode | ( | TAO_InputCDR & | in_cdr | ) |
This method reads the object state from a CDR representation.
Definition at line 381 of file RT_Policy_i.cpp.
{ return in_cdr >> this->priority_bands_; }
CORBA::Boolean TAO_PriorityBandedConnectionPolicy::_tao_encode | ( | TAO_OutputCDR & | out_cdr | ) |
This method writes a CDR representation of the current object.
Definition at line 375 of file RT_Policy_i.cpp.
{ return out_cdr << this->priority_bands_; }
TAO_Policy_Scope TAO_PriorityBandedConnectionPolicy::_tao_scope | ( | void | ) | const |
Definition at line 393 of file RT_Policy_i.cpp.
{ return static_cast<TAO_Policy_Scope> (TAO_POLICY_DEFAULT_SCOPE | TAO_POLICY_CLIENT_EXPOSED); }
CORBA::Policy_ptr TAO_PriorityBandedConnectionPolicy::copy | ( | void | ) |
Definition at line 358 of file RT_Policy_i.cpp.
{ TAO_PriorityBandedConnectionPolicy *tmp = 0; ACE_NEW_THROW_EX (tmp, TAO_PriorityBandedConnectionPolicy (*this), CORBA::NO_MEMORY (TAO::VMCID, CORBA::COMPLETED_NO)); return tmp; }
CORBA::Policy_ptr TAO_PriorityBandedConnectionPolicy::create | ( | const CORBA::Any & | val | ) | [static] |
Helper method for the implementation of CORBA::ORB::create_policy.
Definition at line 324 of file RT_Policy_i.cpp.
{ RTCORBA::PriorityBands *value = 0; if (!(val >>= value)) throw ::CORBA::PolicyError (CORBA::BAD_POLICY_VALUE); TAO_PriorityBandedConnectionPolicy *tmp = 0; ACE_NEW_THROW_EX (tmp, TAO_PriorityBandedConnectionPolicy (*value), CORBA::NO_MEMORY (TAO::VMCID, CORBA::COMPLETED_NO)); return tmp; }
void TAO_PriorityBandedConnectionPolicy::destroy | ( | void | ) |
Definition at line 370 of file RT_Policy_i.cpp.
{ }
CORBA::PolicyType TAO_PriorityBandedConnectionPolicy::policy_type | ( | void | ) |
Definition at line 352 of file RT_Policy_i.cpp.
{
return RTCORBA::PRIORITY_BANDED_CONNECTION_POLICY_TYPE;
}
RTCORBA::PriorityBands * TAO_PriorityBandedConnectionPolicy::priority_bands | ( | void | ) |
Definition at line 340 of file RT_Policy_i.cpp.
{ RTCORBA::PriorityBands *tmp = 0; ACE_NEW_THROW_EX (tmp, RTCORBA::PriorityBands (this->priority_bands_), CORBA::NO_MEMORY (TAO::VMCID, CORBA::COMPLETED_NO)); return tmp; }
RTCORBA::PriorityBands & TAO_PriorityBandedConnectionPolicy::priority_bands_rep | ( | void | ) |
Accessor to the underlying priority bands of the policy (does not make a copy like the idl accessor <priority_bands> implementation below.)
Definition at line 400 of file RT_Policy_i.cpp.
{ return this->priority_bands_; }
friend class TAO_RT_PolicyFactory [friend] |
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.
RTCORBA::PriorityBands TAO_PriorityBandedConnectionPolicy::priority_bands_ [private] |
Attribute.
Definition at line 277 of file RT_Policy_i.h.