#include <RT_Policy_i.h>
Inheritance diagram for TAO_ServerProtocolPolicy:
Public Member Functions | |
TAO_ServerProtocolPolicy (const RTCORBA::ProtocolList &protocols) | |
Constructor. | |
TAO_ServerProtocolPolicy (const TAO_ServerProtocolPolicy &rhs) | |
Copy constructor. | |
RTCORBA::ProtocolList & | protocols_rep (void) |
RTCORBA::ProtocolList * | protocols (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. |
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.
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 } |
|
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 } |
|
Protected destructor to enforce proper memory management of this reference counted object. Definition at line 436 of file RT_Policy_i.cpp.
00437 { 00438 } |
|
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 } |
|
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 } |
|
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 } |
|
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 } |
|
Implements CORBA::Policy. Definition at line 487 of file RT_Policy_i.cpp.
00488 { 00489 } |
|
Implements CORBA::Policy. Definition at line 469 of file RT_Policy_i.cpp.
00470 {
00471 return RTCORBA::SERVER_PROTOCOL_POLICY_TYPE;
00472 }
|
|
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 } |
|
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 } |
|
Attribute.
Definition at line 336 of file RT_Policy_i.h. Referenced by protocols_rep(). |