TAO_PortableServer 3.1.4
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TAO::Portable_Server::ServantRetentionStrategyRetain Class Reference

#include <ServantRetentionStrategyRetain.h>

Inheritance diagram for TAO::Portable_Server::ServantRetentionStrategyRetain:
Inheritance graph
[legend]
Collaboration diagram for TAO::Portable_Server::ServantRetentionStrategyRetain:
Collaboration graph
[legend]

Public Member Functions

 ServantRetentionStrategyRetain ()=default
 
CORBA::ULong waiting_servant_deactivation () const override
 
void strategy_init (TAO_Root_POA *poa) override
 
void strategy_cleanup () override
 
int is_servant_in_map (PortableServer::Servant servant, bool &wait_occurred_restart_call) override
 
PortableServer::ObjectIdactivate_object (PortableServer::Servant servant, CORBA::Short priority, bool &wait_occurred_restart_call) override
 
void activate_object_with_id (const PortableServer::ObjectId &id, PortableServer::Servant servant, CORBA::Short priority, bool &wait_occurred_restart_call) override
 
void deactivate_object (const PortableServer::ObjectId &id) override
 
PortableServer::Servant find_servant (const PortableServer::ObjectId &system_id) override
 
PortableServer::ObjectIdsystem_id_to_object_id (const PortableServer::ObjectId &system_id) override
 
PortableServer::Servant user_id_to_servant (const PortableServer::ObjectId &id) override
 
CORBA::Object_ptr id_to_reference (const PortableServer::ObjectId &id, bool indirect) override
 
TAO_Servant_Location servant_present (const PortableServer::ObjectId &system_id, PortableServer::Servant &servant) override
 
PortableServer::Servant find_servant (const PortableServer::ObjectId &system_id, TAO::Portable_Server::Servant_Upcall &servant_upcall, TAO::Portable_Server::POA_Current_Impl &poa_current_impl) override
 
int find_servant_priority (const PortableServer::ObjectId &system_id, CORBA::Short &priority) override
 
void deactivate_all_objects () override
 
PortableServer::ObjectIdservant_to_user_id (PortableServer::Servant servant) override
 
CORBA::Object_ptr servant_to_reference (PortableServer::Servant servant) override
 
CORBA::Object_ptr create_reference (const char *intf, CORBA::Short priority) override
 
CORBA::Object_ptr create_reference_with_id (const PortableServer::ObjectId &oid, const char *intf, CORBA::Short priority) override
 
- Public Member Functions inherited from TAO::Portable_Server::ServantRetentionStrategyNonRetain
 ServantRetentionStrategyNonRetain ()=default
 
::PortableServer::ServantRetentionPolicyValue type () const override
 
- Public Member Functions inherited from TAO::Portable_Server::ServantRetentionStrategy
 ServantRetentionStrategy ()
 
virtual ~ServantRetentionStrategy ()=default
 

Protected Member Functions

int is_user_id_in_map (const PortableServer::ObjectId &id, CORBA::Short priority, bool &priorities_match, bool &wait_occurred_restart_call)
 
void deactivate_map_entry (TAO_Active_Object_Map_Entry *active_object_map_entry)
 
PortableServer::ObjectIdservant_to_system_id_i (PortableServer::Servant p_servant, CORBA::Short &priority)
 
int rebind_using_user_id_and_system_id (PortableServer::Servant servant, const PortableServer::ObjectId &user_id, const PortableServer::ObjectId &system_id, TAO::Portable_Server::Servant_Upcall &servant_upcall) override
 
CORBA::Boolean servant_has_remaining_activations (PortableServer::Servant servant) override
 
int unbind_using_user_id (const PortableServer::ObjectId &user_id) override
 
TAO_Active_Object_Mapget_active_object_map () const override
 

Private Attributes

std::unique_ptr< TAO_Active_Object_Mapactive_object_map_
 
CORBA::ULong waiting_servant_deactivation_ { 0 }
 

Additional Inherited Members

- Protected Attributes inherited from TAO::Portable_Server::ServantRetentionStrategyNonRetain
TAO_Root_POApoa_ {}
 
std::atomic< uint32_t > sys_id_count_ { 0 }
 

Constructor & Destructor Documentation

◆ ServantRetentionStrategyRetain()

TAO::Portable_Server::ServantRetentionStrategyRetain::ServantRetentionStrategyRetain ( )
default

Member Function Documentation

◆ activate_object()

PortableServer::ObjectId * TAO::Portable_Server::ServantRetentionStrategyRetain::activate_object ( PortableServer::Servant servant,
CORBA::Short priority,
bool & wait_occurred_restart_call )
overridevirtual

◆ activate_object_with_id()

void TAO::Portable_Server::ServantRetentionStrategyRetain::activate_object_with_id ( const PortableServer::ObjectId & id,
PortableServer::Servant servant,
CORBA::Short priority,
bool & wait_occurred_restart_call )
overridevirtual

◆ create_reference()

CORBA::Object_ptr TAO::Portable_Server::ServantRetentionStrategyRetain::create_reference ( const char * intf,
CORBA::Short priority )
overridevirtual

◆ create_reference_with_id()

CORBA::Object_ptr TAO::Portable_Server::ServantRetentionStrategyRetain::create_reference_with_id ( const PortableServer::ObjectId & oid,
const char * intf,
CORBA::Short priority )
overridevirtual

◆ deactivate_all_objects()

void TAO::Portable_Server::ServantRetentionStrategyRetain::deactivate_all_objects ( )
overridevirtual

◆ deactivate_map_entry()

void TAO::Portable_Server::ServantRetentionStrategyRetain::deactivate_map_entry ( TAO_Active_Object_Map_Entry * active_object_map_entry)
protected

◆ deactivate_object()

void TAO::Portable_Server::ServantRetentionStrategyRetain::deactivate_object ( const PortableServer::ObjectId & id)
overridevirtual

◆ find_servant() [1/2]

PortableServer::Servant TAO::Portable_Server::ServantRetentionStrategyRetain::find_servant ( const PortableServer::ObjectId & system_id)
overridevirtual

◆ find_servant() [2/2]

PortableServer::Servant TAO::Portable_Server::ServantRetentionStrategyRetain::find_servant ( const PortableServer::ObjectId & system_id,
TAO::Portable_Server::Servant_Upcall & servant_upcall,
TAO::Portable_Server::POA_Current_Impl & poa_current_impl )
overridevirtual

◆ find_servant_priority()

int TAO::Portable_Server::ServantRetentionStrategyRetain::find_servant_priority ( const PortableServer::ObjectId & system_id,
CORBA::Short & priority )
overridevirtual

◆ get_active_object_map()

TAO_Active_Object_Map * TAO::Portable_Server::ServantRetentionStrategyRetain::get_active_object_map ( ) const
overrideprotectedvirtual

◆ id_to_reference()

CORBA::Object_ptr TAO::Portable_Server::ServantRetentionStrategyRetain::id_to_reference ( const PortableServer::ObjectId & id,
bool indirect )
overridevirtual

◆ is_servant_in_map()

int TAO::Portable_Server::ServantRetentionStrategyRetain::is_servant_in_map ( PortableServer::Servant servant,
bool & wait_occurred_restart_call )
overridevirtual

◆ is_user_id_in_map()

int TAO::Portable_Server::ServantRetentionStrategyRetain::is_user_id_in_map ( const PortableServer::ObjectId & id,
CORBA::Short priority,
bool & priorities_match,
bool & wait_occurred_restart_call )
protected

◆ rebind_using_user_id_and_system_id()

int TAO::Portable_Server::ServantRetentionStrategyRetain::rebind_using_user_id_and_system_id ( PortableServer::Servant servant,
const PortableServer::ObjectId & user_id,
const PortableServer::ObjectId & system_id,
TAO::Portable_Server::Servant_Upcall & servant_upcall )
overrideprotectedvirtual

◆ servant_has_remaining_activations()

CORBA::Boolean TAO::Portable_Server::ServantRetentionStrategyRetain::servant_has_remaining_activations ( PortableServer::Servant servant)
overrideprotectedvirtual

◆ servant_present()

TAO_Servant_Location TAO::Portable_Server::ServantRetentionStrategyRetain::servant_present ( const PortableServer::ObjectId & system_id,
PortableServer::Servant & servant )
overridevirtual

◆ servant_to_reference()

CORBA::Object_ptr TAO::Portable_Server::ServantRetentionStrategyRetain::servant_to_reference ( PortableServer::Servant servant)
overridevirtual

◆ servant_to_system_id_i()

PortableServer::ObjectId * TAO::Portable_Server::ServantRetentionStrategyRetain::servant_to_system_id_i ( PortableServer::Servant p_servant,
CORBA::Short & priority )
protected

◆ servant_to_user_id()

PortableServer::ObjectId * TAO::Portable_Server::ServantRetentionStrategyRetain::servant_to_user_id ( PortableServer::Servant servant)
overridevirtual

If the POA has both the RETAIN and the UNIQUE_ID policy and the specified servant is active, the Object Id associated with that servant is returned.

If the POA has both the RETAIN and the IMPLICIT_ACTIVATION policy and either the POA has the MULTIPLE_ID policy or the specified servant is not active, the servant is activated using a POA-generated Object Id and the Interface Id associated with the servant, and that Object Id is returned.

Reimplemented from TAO::Portable_Server::ServantRetentionStrategyNonRetain.

◆ strategy_cleanup()

void TAO::Portable_Server::ServantRetentionStrategyRetain::strategy_cleanup ( )
overridevirtual

◆ strategy_init()

void TAO::Portable_Server::ServantRetentionStrategyRetain::strategy_init ( TAO_Root_POA * poa)
overridevirtual

◆ system_id_to_object_id()

PortableServer::ObjectId * TAO::Portable_Server::ServantRetentionStrategyRetain::system_id_to_object_id ( const PortableServer::ObjectId & system_id)
overridevirtual

◆ unbind_using_user_id()

int TAO::Portable_Server::ServantRetentionStrategyRetain::unbind_using_user_id ( const PortableServer::ObjectId & user_id)
overrideprotectedvirtual

◆ user_id_to_servant()

PortableServer::Servant TAO::Portable_Server::ServantRetentionStrategyRetain::user_id_to_servant ( const PortableServer::ObjectId & id)
overridevirtual

◆ waiting_servant_deactivation()

CORBA::ULong TAO::Portable_Server::ServantRetentionStrategyRetain::waiting_servant_deactivation ( ) const
overridevirtual

Member Data Documentation

◆ active_object_map_

std::unique_ptr<TAO_Active_Object_Map> TAO::Portable_Server::ServantRetentionStrategyRetain::active_object_map_
private

◆ waiting_servant_deactivation_

CORBA::ULong TAO::Portable_Server::ServantRetentionStrategyRetain::waiting_servant_deactivation_ { 0 }
private

The documentation for this class was generated from the following files: