TAO::Portable_Server::Active_Policy_Strategies Class Reference

#include <Active_Policy_Strategies.h>

Collaboration diagram for TAO::Portable_Server::Active_Policy_Strategies:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Active_Policy_Strategies (void)
void update (Cached_Policies &policies, TAO_Root_POA *poa)
void cleanup (void)
ThreadStrategythread_strategy (void) const
RequestProcessingStrategyrequest_processing_strategy (void) const
IdAssignmentStrategyid_assignment_strategy (void) const
IdUniquenessStrategyid_uniqueness_strategy (void) const
LifespanStrategylifespan_strategy (void) const
ImplicitActivationStrategyimplicit_activation_strategy (void) const
ServantRetentionStrategyservant_retention_strategy (void) const

Private Attributes

ThreadStrategythread_strategy_
RequestProcessingStrategyrequest_processing_strategy_
IdAssignmentStrategyid_assignment_strategy_
LifespanStrategylifespan_strategy_
IdUniquenessStrategyid_uniqueness_strategy_
ImplicitActivationStrategyimplicit_activation_strategy_
ServantRetentionStrategyservant_retention_strategy_
ThreadStrategyFactorythread_strategy_factory_
ServantRetentionStrategyFactoryservant_retention_strategy_factory_
RequestProcessingStrategyFactoryrequest_processing_strategy_factory_
LifespanStrategyFactorylifespan_strategy_factory_
ImplicitActivationStrategyFactoryimplicit_activation_strategy_factory_
IdUniquenessStrategyFactoryid_uniqueness_strategy_factory_
IdAssignmentStrategyFactoryid_assignment_strategy_factory_

Detailed Description

This class stores the active policy strategies used for a certain POA.

Definition at line 52 of file Active_Policy_Strategies.h.


Constructor & Destructor Documentation

TAO::Portable_Server::Active_Policy_Strategies::Active_Policy_Strategies ( void   ) 

Definition at line 47 of file Active_Policy_Strategies.cpp.


Member Function Documentation

void TAO::Portable_Server::Active_Policy_Strategies::cleanup ( void   ) 

Definition at line 171 of file Active_Policy_Strategies.cpp.

References TAO::Portable_Server::IdAssignmentStrategyFactory::destroy(), TAO::Portable_Server::ServantRetentionStrategyFactory::destroy(), TAO::Portable_Server::ThreadStrategyFactory::destroy(), TAO::Portable_Server::ImplicitActivationStrategyFactory::destroy(), TAO::Portable_Server::IdUniquenessStrategyFactory::destroy(), TAO::Portable_Server::RequestProcessingStrategyFactory::destroy(), TAO::Portable_Server::LifespanStrategyFactory::destroy(), id_assignment_strategy_, id_assignment_strategy_factory_, id_uniqueness_strategy_, id_uniqueness_strategy_factory_, implicit_activation_strategy_, implicit_activation_strategy_factory_, lifespan_strategy_, lifespan_strategy_factory_, request_processing_strategy_, request_processing_strategy_factory_, servant_retention_strategy_, servant_retention_strategy_factory_, thread_strategy_, and thread_strategy_factory_.

Referenced by TAO_Root_POA::complete_destruction_i().

00172     {
00173 
00174       if (this->lifespan_strategy_ != 0)
00175         {
00176           this->lifespan_strategy_factory_->destroy (lifespan_strategy_);
00177 
00178           this->lifespan_strategy_ = 0;
00179         }
00180 
00181       if (this->request_processing_strategy_ != 0)
00182         {
00183           this->request_processing_strategy_factory_->destroy (request_processing_strategy_);
00184 
00185           this->request_processing_strategy_ = 0;
00186         }
00187 
00188       if (this->id_uniqueness_strategy_ != 0)
00189         {
00190           this->id_uniqueness_strategy_factory_->destroy (id_uniqueness_strategy_);
00191 
00192           this->id_uniqueness_strategy_ = 0;
00193         }
00194 
00195       if (this->implicit_activation_strategy_ != 0)
00196         {
00197           this->implicit_activation_strategy_factory_->destroy (implicit_activation_strategy_);
00198 
00199           this->implicit_activation_strategy_ = 0;
00200         }
00201 
00202       if (this->thread_strategy_ != 0)
00203         {
00204           this->thread_strategy_factory_->destroy (thread_strategy_);
00205 
00206           this->thread_strategy_ = 0;
00207         }
00208 
00209       if (this->servant_retention_strategy_ != 0)
00210         {
00211           this->servant_retention_strategy_factory_->destroy (servant_retention_strategy_);
00212 
00213           this->servant_retention_strategy_ = 0;
00214         }
00215 
00216       if (this->id_assignment_strategy_ != 0)
00217         {
00218           this->id_assignment_strategy_factory_->destroy (id_assignment_strategy_);
00219 
00220           this->id_assignment_strategy_ = 0;
00221         }
00222     }

ACE_INLINE IdAssignmentStrategy * TAO::Portable_Server::Active_Policy_Strategies::id_assignment_strategy ( void   )  const

Definition at line 27 of file Active_Policy_Strategies.inl.

References id_assignment_strategy_.

Referenced by TAO_Root_POA::has_system_id(), and TAO_Root_POA::set_id().

00028     {
00029       return this->id_assignment_strategy_;
00030     }

ACE_INLINE IdUniquenessStrategy * TAO::Portable_Server::Active_Policy_Strategies::id_uniqueness_strategy ( void   )  const

Definition at line 34 of file Active_Policy_Strategies.inl.

References id_uniqueness_strategy_.

Referenced by TAO_Root_POA::allow_multiple_activations(), and TAO_Root_POA::is_servant_activation_allowed().

00035     {
00036       return this->id_uniqueness_strategy_;
00037     }

ACE_INLINE ImplicitActivationStrategy * TAO::Portable_Server::Active_Policy_Strategies::implicit_activation_strategy ( void   )  const

Definition at line 48 of file Active_Policy_Strategies.inl.

References implicit_activation_strategy_.

Referenced by TAO_Root_POA::allow_implicit_activation().

00049     {
00050       return this->implicit_activation_strategy_;
00051     }

ACE_INLINE LifespanStrategy * TAO::Portable_Server::Active_Policy_Strategies::lifespan_strategy ( void   )  const

Definition at line 41 of file Active_Policy_Strategies.inl.

References lifespan_strategy_.

Referenced by TAO_Root_POA::check_state(), TAO_Root_POA::destroy_i(), TAO_Root_POA::is_persistent(), TAO_Root_POA::set_id(), TAO_Root_POA::TAO_Root_POA(), and TAO_Root_POA::validate_lifespan().

00042     {
00043       return this->lifespan_strategy_;
00044     }

ACE_INLINE RequestProcessingStrategy * TAO::Portable_Server::Active_Policy_Strategies::request_processing_strategy ( void   )  const

Definition at line 20 of file Active_Policy_Strategies.inl.

References request_processing_strategy_.

Referenced by TAO_Root_POA::cleanup_servant(), TAO_Root_POA::deactivate_all_objects_i(), TAO_Root_POA::get_servant_i(), TAO_Root_POA::get_servant_manager(), TAO_Root_POA::id_to_servant_i(), TAO_Root_POA::locate_servant_i(), TAO_Root_POA::post_invoke_servant_cleanup(), TAO_Root_POA::reference_to_servant_i(), TAO_Root_POA::servant_to_id_i(), TAO_Root_POA::set_servant(), and TAO_Root_POA::set_servant_manager().

00021     {
00022       return this->request_processing_strategy_;
00023     }

ACE_INLINE ServantRetentionStrategy * TAO::Portable_Server::Active_Policy_Strategies::servant_retention_strategy ( void   )  const

Definition at line 55 of file Active_Policy_Strategies.inl.

References servant_retention_strategy_.

Referenced by TAO_Root_POA::activate_object_i(), TAO_Root_POA::activate_object_with_id_i(), TAO_Root_POA::create_reference_i(), TAO_Root_POA::create_reference_with_id_i(), TAO_Root_POA::deactivate_all_objects_i(), TAO_Root_POA::deactivate_object_i(), TAO_Root_POA::find_servant(), TAO_Root_POA::find_servant_priority(), TAO_Root_POA::id_to_reference_i(), TAO_Root_POA::is_servant_active(), TAO_Root_POA::rebind_using_user_id_and_system_id(), TAO_Root_POA::reference_to_id(), TAO_Root_POA::servant_has_remaining_activations(), TAO_Root_POA::servant_present(), TAO_Root_POA::servant_to_reference_i(), TAO_Root_POA::servant_to_user_id(), TAO_Root_POA::unbind_using_user_id(), TAO_Root_POA::user_id_to_servant_i(), and TAO_Root_POA::waiting_servant_deactivation().

00056     {
00057       return this->servant_retention_strategy_;
00058     }

ACE_INLINE ThreadStrategy * TAO::Portable_Server::Active_Policy_Strategies::thread_strategy ( void   )  const

Definition at line 13 of file Active_Policy_Strategies.inl.

References thread_strategy_.

Referenced by TAO_Root_POA::enter(), and TAO_Root_POA::exit().

00014     {
00015       return this->thread_strategy_;
00016     }

void TAO::Portable_Server::Active_Policy_Strategies::update ( Cached_Policies policies,
TAO_Root_POA poa 
)

Referenced by TAO_Root_POA::TAO_Root_POA().


Member Data Documentation

IdAssignmentStrategy* TAO::Portable_Server::Active_Policy_Strategies::id_assignment_strategy_ [private]

Definition at line 80 of file Active_Policy_Strategies.h.

Referenced by cleanup(), and id_assignment_strategy().

IdAssignmentStrategyFactory* TAO::Portable_Server::Active_Policy_Strategies::id_assignment_strategy_factory_ [private]

Definition at line 92 of file Active_Policy_Strategies.h.

Referenced by cleanup().

IdUniquenessStrategy* TAO::Portable_Server::Active_Policy_Strategies::id_uniqueness_strategy_ [private]

Definition at line 82 of file Active_Policy_Strategies.h.

Referenced by cleanup(), and id_uniqueness_strategy().

IdUniquenessStrategyFactory* TAO::Portable_Server::Active_Policy_Strategies::id_uniqueness_strategy_factory_ [private]

Definition at line 91 of file Active_Policy_Strategies.h.

Referenced by cleanup().

ImplicitActivationStrategy* TAO::Portable_Server::Active_Policy_Strategies::implicit_activation_strategy_ [private]

Definition at line 83 of file Active_Policy_Strategies.h.

Referenced by cleanup(), and implicit_activation_strategy().

ImplicitActivationStrategyFactory* TAO::Portable_Server::Active_Policy_Strategies::implicit_activation_strategy_factory_ [private]

Definition at line 90 of file Active_Policy_Strategies.h.

Referenced by cleanup().

LifespanStrategy* TAO::Portable_Server::Active_Policy_Strategies::lifespan_strategy_ [private]

Definition at line 81 of file Active_Policy_Strategies.h.

Referenced by cleanup(), and lifespan_strategy().

LifespanStrategyFactory* TAO::Portable_Server::Active_Policy_Strategies::lifespan_strategy_factory_ [private]

Definition at line 89 of file Active_Policy_Strategies.h.

Referenced by cleanup().

RequestProcessingStrategy* TAO::Portable_Server::Active_Policy_Strategies::request_processing_strategy_ [private]

Definition at line 79 of file Active_Policy_Strategies.h.

Referenced by cleanup(), and request_processing_strategy().

RequestProcessingStrategyFactory* TAO::Portable_Server::Active_Policy_Strategies::request_processing_strategy_factory_ [private]

Definition at line 88 of file Active_Policy_Strategies.h.

Referenced by cleanup().

ServantRetentionStrategy* TAO::Portable_Server::Active_Policy_Strategies::servant_retention_strategy_ [private]

Definition at line 84 of file Active_Policy_Strategies.h.

Referenced by cleanup(), and servant_retention_strategy().

ServantRetentionStrategyFactory* TAO::Portable_Server::Active_Policy_Strategies::servant_retention_strategy_factory_ [private]

Definition at line 87 of file Active_Policy_Strategies.h.

Referenced by cleanup().

ThreadStrategy* TAO::Portable_Server::Active_Policy_Strategies::thread_strategy_ [private]

Definition at line 78 of file Active_Policy_Strategies.h.

Referenced by cleanup(), and thread_strategy().

ThreadStrategyFactory* TAO::Portable_Server::Active_Policy_Strategies::thread_strategy_factory_ [private]

Definition at line 86 of file Active_Policy_Strategies.h.

Referenced by cleanup().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:41:38 2010 for TAO_PortableServer by  doxygen 1.4.7