#include <POA_Cached_Policies.h>
Public Types | |
enum | PriorityModel { CLIENT_PROPAGATED, SERVER_DECLARED, NOT_SPECIFIED } |
enum | NetworkPriorityModel { CLIENT_PROPAGATED_NETWORK_PRIORITY, SERVER_DECLARED_NETWORK_PRIORITY, NO_NETWORK_PRIORITY } |
Public Member Functions | |
Cached_Policies () | |
~Cached_Policies (void) | |
void | update (TAO_POA_Policy_Set &policy_set) |
Update the cached policy values. | |
Accessor methods to cached values. | |
::PortableServer::ThreadPolicyValue | thread (void) const |
::PortableServer::LifespanPolicyValue | lifespan (void) const |
::PortableServer::IdUniquenessPolicyValue | id_uniqueness (void) const |
::PortableServer::IdAssignmentPolicyValue | id_assignment (void) const |
::PortableServer::ImplicitActivationPolicyValue | implicit_activation (void) const |
::PortableServer::ServantRetentionPolicyValue | servant_retention (void) const |
::PortableServer::RequestProcessingPolicyValue | request_processing (void) const |
PriorityModel | priority_model (void) const |
CORBA::Short | server_priority (void) const |
NetworkPriorityModel | network_priority_model (void) const |
CORBA::Long | request_diffserv_codepoint (void) const |
CORBA::Long | reply_diffserv_codepoint (void) const |
void | network_priority_model (NetworkPriorityModel network_priority_model) |
void | request_diffserv_codepoint (CORBA::Long diffserv_codepoint) |
void | reply_diffserv_codepoint (CORBA::Long diffserv_codepoint) |
void | priority_model (PriorityModel priority_model) |
void | server_priority (CORBA::Short priority) |
void | implicit_activation (::PortableServer::ImplicitActivationPolicyValue value) |
Protected Member Functions | |
void | update_policy (const CORBA::Policy_ptr policy) |
Helper method to update a particular policy. | |
Protected Attributes | |
::PortableServer::ThreadPolicyValue | thread_ |
::PortableServer::LifespanPolicyValue | lifespan_ |
::PortableServer::IdUniquenessPolicyValue | id_uniqueness_ |
::PortableServer::IdAssignmentPolicyValue | id_assignment_ |
::PortableServer::ImplicitActivationPolicyValue | implicit_activation_ |
::PortableServer::ServantRetentionPolicyValue | servant_retention_ |
::PortableServer::RequestProcessingPolicyValue | request_processing_ |
PriorityModel | priority_model_ |
CORBA::Short | server_priority_ |
NetworkPriorityModel | network_priority_model_ |
CORBA::Long | request_diffserv_codepoint_ |
CORBA::Long | reply_diffserv_codepoint_ |
Definition at line 42 of file POA_Cached_Policies.h.
enum TAO::Portable_Server::Cached_Policies::NetworkPriorityModel |
Definition at line 53 of file POA_Cached_Policies.h.
{ CLIENT_PROPAGATED_NETWORK_PRIORITY, SERVER_DECLARED_NETWORK_PRIORITY, NO_NETWORK_PRIORITY };
enum TAO::Portable_Server::Cached_Policies::PriorityModel |
Definition at line 46 of file POA_Cached_Policies.h.
{ CLIENT_PROPAGATED, SERVER_DECLARED, NOT_SPECIFIED };
TAO::Portable_Server::Cached_Policies::Cached_Policies | ( | ) |
Definition at line 27 of file POA_Cached_Policies.cpp.
: thread_ (::PortableServer::ORB_CTRL_MODEL), lifespan_ (::PortableServer::TRANSIENT), id_uniqueness_ (::PortableServer::UNIQUE_ID), id_assignment_ (::PortableServer::SYSTEM_ID), implicit_activation_ (::PortableServer::NO_IMPLICIT_ACTIVATION), servant_retention_ (::PortableServer::RETAIN), request_processing_ (::PortableServer::USE_ACTIVE_OBJECT_MAP_ONLY), priority_model_ (Cached_Policies::NOT_SPECIFIED), server_priority_ (TAO_INVALID_PRIORITY), network_priority_model_ (Cached_Policies::NO_NETWORK_PRIORITY), request_diffserv_codepoint_ (0), reply_diffserv_codepoint_ (0) { }
TAO::Portable_Server::Cached_Policies::~Cached_Policies | ( | void | ) |
Definition at line 44 of file POA_Cached_Policies.cpp.
{ }
PortableServer::IdAssignmentPolicyValue TAO::Portable_Server::Cached_Policies::id_assignment | ( | void | ) | const |
Returns the network priority model that was set using a policy by the server application.
Definition at line 30 of file POA_Cached_Policies.inl.
{ return this->id_assignment_; }
PortableServer::IdUniquenessPolicyValue TAO::Portable_Server::Cached_Policies::id_uniqueness | ( | void | ) | const |
Returns the network priority model that was set using a policy by the server application.
Definition at line 24 of file POA_Cached_Policies.inl.
{ return this->id_uniqueness_; }
void TAO::Portable_Server::Cached_Policies::implicit_activation | ( | ::PortableServer::ImplicitActivationPolicyValue | value | ) |
Returns the network priority model that was set using a policy by the server application.
PortableServer::ImplicitActivationPolicyValue TAO::Portable_Server::Cached_Policies::implicit_activation | ( | void | ) | const |
Returns the network priority model that was set using a policy by the server application.
Definition at line 36 of file POA_Cached_Policies.inl.
{ return this->implicit_activation_; }
PortableServer::LifespanPolicyValue TAO::Portable_Server::Cached_Policies::lifespan | ( | void | ) | const |
Returns the network priority model that was set using a policy by the server application.
Definition at line 18 of file POA_Cached_Policies.inl.
{ return this->lifespan_; }
Cached_Policies::NetworkPriorityModel TAO::Portable_Server::Cached_Policies::network_priority_model | ( | void | ) | const |
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.
{ return this->network_priority_model_; }
void TAO::Portable_Server::Cached_Policies::network_priority_model | ( | NetworkPriorityModel | network_priority_model | ) |
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.
{ this->network_priority_model_ = network_priority_model; }
void TAO::Portable_Server::Cached_Policies::priority_model | ( | PriorityModel | priority_model | ) |
Returns the network priority model that was set using a policy by the server application.
Definition at line 66 of file POA_Cached_Policies.inl.
{ this->priority_model_ = priority_model; }
Cached_Policies::PriorityModel TAO::Portable_Server::Cached_Policies::priority_model | ( | void | ) | const |
Returns the network priority model that was set using a policy by the server application.
Definition at line 54 of file POA_Cached_Policies.inl.
{ return this->priority_model_; }
void TAO::Portable_Server::Cached_Policies::reply_diffserv_codepoint | ( | CORBA::Long | diffserv_codepoint | ) |
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.
{ this->reply_diffserv_codepoint_ = diffserv_codepoint; }
CORBA::Long TAO::Portable_Server::Cached_Policies::reply_diffserv_codepoint | ( | void | ) | const |
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.
{ return this->reply_diffserv_codepoint_; }
CORBA::Long TAO::Portable_Server::Cached_Policies::request_diffserv_codepoint | ( | void | ) | const |
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.
{ return this->request_diffserv_codepoint_; }
void TAO::Portable_Server::Cached_Policies::request_diffserv_codepoint | ( | CORBA::Long | diffserv_codepoint | ) |
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.
{ this->request_diffserv_codepoint_ = diffserv_codepoint; }
PortableServer::RequestProcessingPolicyValue TAO::Portable_Server::Cached_Policies::request_processing | ( | void | ) | const |
Returns the network priority model that was set using a policy by the server application.
Definition at line 48 of file POA_Cached_Policies.inl.
{ return this->request_processing_; }
PortableServer::ServantRetentionPolicyValue TAO::Portable_Server::Cached_Policies::servant_retention | ( | void | ) | const |
Returns the network priority model that was set using a policy by the server application.
Definition at line 42 of file POA_Cached_Policies.inl.
{ return this->servant_retention_; }
void TAO::Portable_Server::Cached_Policies::server_priority | ( | CORBA::Short | priority | ) |
Returns the network priority model that was set using a policy by the server application.
Definition at line 72 of file POA_Cached_Policies.inl.
{ this->server_priority_ = priority; }
CORBA::Short TAO::Portable_Server::Cached_Policies::server_priority | ( | void | ) | const |
Returns the network priority model that was set using a policy by the server application.
Definition at line 60 of file POA_Cached_Policies.inl.
{ return this->server_priority_; }
PortableServer::ThreadPolicyValue TAO::Portable_Server::Cached_Policies::thread | ( | void | ) | const |
Returns the network priority model that was set using a policy by the server application.
Definition at line 12 of file POA_Cached_Policies.inl.
{ return this->thread_; }
void TAO::Portable_Server::Cached_Policies::update | ( | TAO_POA_Policy_Set & | policy_set | ) |
Update the cached policy values.
Definition at line 49 of file POA_Cached_Policies.cpp.
{ for (CORBA::ULong i = 0; i < policy_set.num_policies (); i++) { CORBA::Policy_var policy = policy_set.get_policy_by_index (i); this->update_policy (policy.in () ); } }
void TAO::Portable_Server::Cached_Policies::update_policy | ( | const CORBA::Policy_ptr | policy | ) | [protected] |
Helper method to update a particular policy.
Definition at line 62 of file POA_Cached_Policies.cpp.
{ #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) ::PortableServer::ThreadPolicy_var thread = ::PortableServer::ThreadPolicy::_narrow (policy ); if (!CORBA::is_nil (thread.in ())) { this->thread_ = thread->value (); return; } #endif /* TAO_HAS_MINIMUM_POA == 0 */ #if !defined (CORBA_E_MICRO) ::PortableServer::LifespanPolicy_var lifespan = ::PortableServer::LifespanPolicy::_narrow (policy ); if (!CORBA::is_nil (lifespan.in ())) { this->lifespan_ = lifespan->value (); return; } #endif #if !defined (CORBA_E_MICRO) ::PortableServer::IdUniquenessPolicy_var id_uniqueness = ::PortableServer::IdUniquenessPolicy::_narrow (policy ); if (!CORBA::is_nil (id_uniqueness.in ())) { this->id_uniqueness_ = id_uniqueness->value (); return; } #endif #if !defined (CORBA_E_MICRO) ::PortableServer::IdAssignmentPolicy_var id_assignment = ::PortableServer::IdAssignmentPolicy::_narrow (policy ); if (!CORBA::is_nil (id_assignment.in ())) { this->id_assignment_ = id_assignment->value (); return; } #endif #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) ::PortableServer::ImplicitActivationPolicy_var implicit_activation = ::PortableServer::ImplicitActivationPolicy::_narrow (policy ); if (!CORBA::is_nil (implicit_activation.in ())) { this->implicit_activation_ = implicit_activation->value (); return; } ::PortableServer::ServantRetentionPolicy_var servant_retention = ::PortableServer::ServantRetentionPolicy::_narrow (policy ); if (!CORBA::is_nil (servant_retention.in ())) { this->servant_retention_ = servant_retention->value (); return; } ::PortableServer::RequestProcessingPolicy_var request_processing = ::PortableServer::RequestProcessingPolicy::_narrow (policy ); if (!CORBA::is_nil (request_processing.in ())) { this->request_processing_ = request_processing->value (); return; } #endif /* TAO_HAS_MINIMUM_POA == 0 */ #if defined (CORBA_E_MICRO) ACE_UNUSED_ARG (policy); #endif }
::PortableServer::IdAssignmentPolicyValue TAO::Portable_Server::Cached_Policies::id_assignment_ [protected] |
Definition at line 130 of file POA_Cached_Policies.h.
::PortableServer::IdUniquenessPolicyValue TAO::Portable_Server::Cached_Policies::id_uniqueness_ [protected] |
Definition at line 128 of file POA_Cached_Policies.h.
::PortableServer::ImplicitActivationPolicyValue TAO::Portable_Server::Cached_Policies::implicit_activation_ [protected] |
Definition at line 132 of file POA_Cached_Policies.h.
::PortableServer::LifespanPolicyValue TAO::Portable_Server::Cached_Policies::lifespan_ [protected] |
Definition at line 126 of file POA_Cached_Policies.h.
NetworkPriorityModel TAO::Portable_Server::Cached_Policies::network_priority_model_ [protected] |
Definition at line 142 of file POA_Cached_Policies.h.
PriorityModel TAO::Portable_Server::Cached_Policies::priority_model_ [protected] |
Definition at line 138 of file POA_Cached_Policies.h.
CORBA::Long TAO::Portable_Server::Cached_Policies::reply_diffserv_codepoint_ [protected] |
Definition at line 146 of file POA_Cached_Policies.h.
CORBA::Long TAO::Portable_Server::Cached_Policies::request_diffserv_codepoint_ [protected] |
Definition at line 144 of file POA_Cached_Policies.h.
::PortableServer::RequestProcessingPolicyValue TAO::Portable_Server::Cached_Policies::request_processing_ [protected] |
Definition at line 136 of file POA_Cached_Policies.h.
::PortableServer::ServantRetentionPolicyValue TAO::Portable_Server::Cached_Policies::servant_retention_ [protected] |
Definition at line 134 of file POA_Cached_Policies.h.
CORBA::Short TAO::Portable_Server::Cached_Policies::server_priority_ [protected] |
Definition at line 140 of file POA_Cached_Policies.h.
::PortableServer::ThreadPolicyValue TAO::Portable_Server::Cached_Policies::thread_ [protected] |
Definition at line 124 of file POA_Cached_Policies.h.