TAO_ServerProtocolPolicy Class Reference

RTCORBA::ServerProtocolPolicy implementation. More...

#include <RT_Policy_i.h>

Inheritance diagram for TAO_ServerProtocolPolicy:

Inheritance graph
[legend]
Collaboration diagram for TAO_ServerProtocolPolicy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_ServerProtocolPolicy (const RTCORBA::ProtocolList &protocols)
 Constructor.

 TAO_ServerProtocolPolicy (const TAO_ServerProtocolPolicy &rhs)
 Copy constructor.

RTCORBA::ProtocolListprotocols_rep (void)
RTCORBA::ProtocolListprotocols (void)
CORBA::PolicyType policy_type (void)
CORBA::Policy_ptr copy (void)
void destroy (void)
TAO_Cached_Policy_Type _tao_cached_type (void) const
TAO_Policy_Scope _tao_scope (void) const

Static Public Member Functions

CORBA::Policy_ptr create (const CORBA::Any &val)

Protected Member Functions

virtual ~TAO_ServerProtocolPolicy (void)

Private Attributes

RTCORBA::ProtocolList protocols_
 Attribute.


Detailed Description

RTCORBA::ServerProtocolPolicy implementation.

This policy controls selection and configuration of communication protocols on the server-side of the RT ORB.

Definition at line 290 of file RT_Policy_i.h.


Constructor & Destructor Documentation

TAO_ServerProtocolPolicy::TAO_ServerProtocolPolicy const RTCORBA::ProtocolList protocols  ) 
 

Constructor.

Definition at line 416 of file RT_Policy_i.cpp.

References RTCORBA::ProtocolList.

00417   : ::CORBA::Object ()
00418   , ::CORBA::Policy ()
00419   , ::CORBA::LocalObject ()
00420   , RTCORBA::ServerProtocolPolicy ()
00421   , TAO_Local_RefCounted_Object ()
00422   , protocols_ (protocols)
00423 {
00424 }

TAO_ServerProtocolPolicy::TAO_ServerProtocolPolicy const TAO_ServerProtocolPolicy rhs  ) 
 

Copy constructor.

Definition at line 426 of file RT_Policy_i.cpp.

00427   : ::CORBA::Object ()
00428   , ::CORBA::Policy ()
00429   , ::CORBA::LocalObject ()
00430   , RTCORBA::ServerProtocolPolicy ()
00431   , TAO_Local_RefCounted_Object ()
00432   , protocols_ (rhs.protocols_)
00433 {
00434 }

TAO_ServerProtocolPolicy::~TAO_ServerProtocolPolicy void   )  [protected, virtual]
 

Protected destructor to enforce proper memory management of this reference counted object.

Definition at line 436 of file RT_Policy_i.cpp.

00437 {
00438 }


Member Function Documentation

TAO_Cached_Policy_Type TAO_ServerProtocolPolicy::_tao_cached_type void   )  const [virtual]
 

Implements CORBA::Policy.

Definition at line 492 of file RT_Policy_i.cpp.

References TAO_CACHED_POLICY_RT_SERVER_PROTOCOL.

00493 {
00494   return TAO_CACHED_POLICY_RT_SERVER_PROTOCOL;
00495 }

TAO_Policy_Scope TAO_ServerProtocolPolicy::_tao_scope void   )  const [virtual]
 

Implements CORBA::Policy.

Definition at line 498 of file RT_Policy_i.cpp.

References TAO_POLICY_ORB_SCOPE, and TAO_POLICY_POA_SCOPE.

00499 {
00500   return static_cast<TAO_Policy_Scope> (TAO_POLICY_ORB_SCOPE |
00501                           TAO_POLICY_POA_SCOPE);
00502 }

CORBA::Policy_ptr TAO_ServerProtocolPolicy::copy void   ) 
 

Implements CORBA::Policy.

Definition at line 475 of file RT_Policy_i.cpp.

References ACE_NEW_THROW_EX.

00476 {
00477   TAO_ServerProtocolPolicy* tmp = 0;
00478   ACE_NEW_THROW_EX (tmp,
00479                     TAO_ServerProtocolPolicy (*this),
00480                     CORBA::NO_MEMORY (TAO::VMCID,
00481                                       CORBA::COMPLETED_NO));
00482 
00483   return tmp;
00484 }

CORBA::Policy_ptr TAO_ServerProtocolPolicy::create const CORBA::Any &  val  )  [static]
 

Helper method for the implementation of CORBA::ORB::create_policy.

Definition at line 441 of file RT_Policy_i.cpp.

References ACE_NEW_THROW_EX, and RTCORBA::ProtocolList.

Referenced by TAO_RT_PolicyFactory::create_policy().

00442 {
00443   RTCORBA::ProtocolList *value = 0;
00444   if ((val >>= value) == 0)
00445     throw ::CORBA::PolicyError (CORBA::BAD_POLICY_VALUE);
00446 
00447   TAO_ServerProtocolPolicy *tmp = 0;
00448   ACE_NEW_THROW_EX (tmp,
00449                     TAO_ServerProtocolPolicy (*value),
00450                     CORBA::NO_MEMORY (TAO::VMCID,
00451                                       CORBA::COMPLETED_NO));
00452 
00453   return tmp;
00454 }

void TAO_ServerProtocolPolicy::destroy void   ) 
 

Implements CORBA::Policy.

Definition at line 487 of file RT_Policy_i.cpp.

00488 {
00489 }

CORBA::PolicyType TAO_ServerProtocolPolicy::policy_type void   )  [virtual]
 

Implements CORBA::Policy.

Definition at line 469 of file RT_Policy_i.cpp.

00470 {
00471   return RTCORBA::SERVER_PROTOCOL_POLICY_TYPE;
00472 }

RTCORBA::ProtocolList * TAO_ServerProtocolPolicy::protocols void   ) 
 

Definition at line 457 of file RT_Policy_i.cpp.

References ACE_NEW_THROW_EX, and RTCORBA::ProtocolList.

00458 {
00459   RTCORBA::ProtocolList *tmp = 0;
00460   ACE_NEW_THROW_EX (tmp,
00461                     RTCORBA::ProtocolList (this->protocols_),
00462                     CORBA::NO_MEMORY (TAO::VMCID,
00463                                       CORBA::COMPLETED_NO));
00464 
00465   return tmp;
00466 }

RTCORBA::ProtocolList & TAO_ServerProtocolPolicy::protocols_rep void   ) 
 

Accessor to the underlying protocols list of the policy (does not make a copy like the idl accessor implementation below.)

Definition at line 505 of file RT_Policy_i.cpp.

References protocols_.

Referenced by TAO_RT_Protocols_Hooks::server_protocol_properties().

00506 {
00507   return protocols_;
00508 }


Member Data Documentation

RTCORBA::ProtocolList TAO_ServerProtocolPolicy::protocols_ [private]
 

Attribute.

Definition at line 336 of file RT_Policy_i.h.

Referenced by protocols_rep().


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:35:01 2008 for TAO_RTCORBA by doxygen 1.3.6