TAO_PortableServer  2.1.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
Collaboration diagram for TAO::Portable_Server::ServantRetentionStrategyRetain:
Collaboration graph

Public Member Functions

 ServantRetentionStrategyRetain (void)
 
CORBA::ULong waiting_servant_deactivation (void) const
 
virtual void strategy_init (TAO_Root_POA *poa)
 
virtual void strategy_cleanup (void)
 
virtual int is_servant_in_map (PortableServer::Servant servant, bool &wait_occurred_restart_call)
 
virtual PortableServer::ObjectIdactivate_object (PortableServer::Servant servant, CORBA::Short priority, bool &wait_occurred_restart_call)
 
virtual void activate_object_with_id (const PortableServer::ObjectId &id, PortableServer::Servant servant, CORBA::Short priority, bool &wait_occurred_restart_call)
 
void deactivate_object (const PortableServer::ObjectId &id)
 
virtual PortableServer::Servant find_servant (const PortableServer::ObjectId &system_id)
 
virtual PortableServer::ObjectIdsystem_id_to_object_id (const PortableServer::ObjectId &system_id)
 
virtual PortableServer::Servant user_id_to_servant (const PortableServer::ObjectId &id)
 
CORBA::Object_ptr id_to_reference (const PortableServer::ObjectId &id, bool indirect)
 
virtual TAO_SERVANT_LOCATION servant_present (const PortableServer::ObjectId &system_id, PortableServer::Servant &servant)
 
virtual 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)
 
virtual int find_servant_priority (const PortableServer::ObjectId &system_id, CORBA::Short &priority)
 
virtual void deactivate_all_objects (void)
 
virtual PortableServer::ObjectIdservant_to_user_id (PortableServer::Servant servant)
 
virtual CORBA::Object_ptr servant_to_reference (PortableServer::Servant servant)
 
virtual CORBA::Object_ptr create_reference (const char *intf, CORBA::Short priority)
 
virtual CORBA::Object_ptr create_reference_with_id (const PortableServer::ObjectId &oid, const char *intf, CORBA::Short priority)
 
virtual
::PortableServer::ServantRetentionPolicyValue 
type () const
 
- Public Member Functions inherited from TAO::Portable_Server::ServantRetentionStrategyNonRetain
 ServantRetentionStrategyNonRetain (void)
 

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)
 
virtual 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)
 
virtual CORBA::Boolean servant_has_remaining_activations (PortableServer::Servant servant)
 
virtual int unbind_using_user_id (const PortableServer::ObjectId &user_id)
 
TAO_Active_Object_Mapget_active_object_map () const
 

Private Attributes

auto_ptr< TAO_Active_Object_Mapactive_object_map_
 
CORBA::ULong waiting_servant_deactivation_
 

Additional Inherited Members

- Public Types inherited from ACE_Service_Object
typedef long Reference_Count
 
- Static Public Member Functions inherited from ACE_Service_Object
static ACE_THR_FUNC_RETURN read_adapter (void *event_handler)
 
static int register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED)
 
static int remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr)
 
- Public Attributes inherited from ACE_Service_Object
 LO_PRIORITY
 
 HI_PRIORITY
 
 NULL_MASK
 
 READ_MASK
 
 WRITE_MASK
 
 EXCEPT_MASK
 
 ACCEPT_MASK
 
 CONNECT_MASK
 
 TIMER_MASK
 
 QOS_MASK
 
 GROUP_QOS_MASK
 
 SIGNAL_MASK
 
 ALL_EVENTS_MASK
 
 RWE_MASK
 
 DONT_CALL
 
 ACE_EVENT_HANDLER_NOT_RESUMED
 
 ACE_REACTOR_RESUMES_HANDLER
 
 ACE_APPLICATION_RESUMES_HANDLER
 
- Protected Types inherited from ACE_Service_Object
typedef ACE_Atomic_Op
< ACE_SYNCH_MUTEX,
Reference_Count
Atomic_Reference_Count
 
- Protected Attributes inherited from TAO::Portable_Server::ServantRetentionStrategyNonRetain
TAO_Root_POApoa_
 

Constructor & Destructor Documentation

TAO::Portable_Server::ServantRetentionStrategyRetain::ServantRetentionStrategyRetain ( void  )

Member Function Documentation

PortableServer::ObjectId * TAO::Portable_Server::ServantRetentionStrategyRetain::activate_object ( PortableServer::Servant  servant,
CORBA::Short  priority,
bool &  wait_occurred_restart_call 
)
virtual
void TAO::Portable_Server::ServantRetentionStrategyRetain::activate_object_with_id ( const PortableServer::ObjectId id,
PortableServer::Servant  servant,
CORBA::Short  priority,
bool &  wait_occurred_restart_call 
)
virtual
CORBA::Object_ptr TAO::Portable_Server::ServantRetentionStrategyRetain::create_reference ( const char *  intf,
CORBA::Short  priority 
)
virtual
CORBA::Object_ptr TAO::Portable_Server::ServantRetentionStrategyRetain::create_reference_with_id ( const PortableServer::ObjectId oid,
const char *  intf,
CORBA::Short  priority 
)
virtual
void TAO::Portable_Server::ServantRetentionStrategyRetain::deactivate_all_objects ( void  )
virtual
void TAO::Portable_Server::ServantRetentionStrategyRetain::deactivate_map_entry ( TAO_Active_Object_Map_Entry active_object_map_entry)
protected
void TAO::Portable_Server::ServantRetentionStrategyRetain::deactivate_object ( const PortableServer::ObjectId id)
virtual
PortableServer::Servant TAO::Portable_Server::ServantRetentionStrategyRetain::find_servant ( const PortableServer::ObjectId system_id)
virtual
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 
)
virtual
int TAO::Portable_Server::ServantRetentionStrategyRetain::find_servant_priority ( const PortableServer::ObjectId system_id,
CORBA::Short priority 
)
virtual
TAO_Active_Object_Map * TAO::Portable_Server::ServantRetentionStrategyRetain::get_active_object_map ( ) const
protectedvirtual
CORBA::Object_ptr TAO::Portable_Server::ServantRetentionStrategyRetain::id_to_reference ( const PortableServer::ObjectId id,
bool  indirect 
)
virtual
int TAO::Portable_Server::ServantRetentionStrategyRetain::is_servant_in_map ( PortableServer::Servant  servant,
bool &  wait_occurred_restart_call 
)
virtual
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
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 
)
protectedvirtual
CORBA::Boolean TAO::Portable_Server::ServantRetentionStrategyRetain::servant_has_remaining_activations ( PortableServer::Servant  servant)
protectedvirtual
TAO_SERVANT_LOCATION TAO::Portable_Server::ServantRetentionStrategyRetain::servant_present ( const PortableServer::ObjectId system_id,
PortableServer::Servant servant 
)
virtual
CORBA::Object_ptr TAO::Portable_Server::ServantRetentionStrategyRetain::servant_to_reference ( PortableServer::Servant  servant)
virtual
PortableServer::ObjectId * TAO::Portable_Server::ServantRetentionStrategyRetain::servant_to_system_id_i ( PortableServer::Servant  p_servant,
CORBA::Short priority 
)
protected
PortableServer::ObjectId * TAO::Portable_Server::ServantRetentionStrategyRetain::servant_to_user_id ( PortableServer::Servant  servant)
virtual

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.

void TAO::Portable_Server::ServantRetentionStrategyRetain::strategy_cleanup ( void  )
virtual
void TAO::Portable_Server::ServantRetentionStrategyRetain::strategy_init ( TAO_Root_POA poa)
virtual
PortableServer::ObjectId * TAO::Portable_Server::ServantRetentionStrategyRetain::system_id_to_object_id ( const PortableServer::ObjectId system_id)
virtual
PortableServer::ServantRetentionPolicyValue TAO::Portable_Server::ServantRetentionStrategyRetain::type ( void  ) const
virtual
int TAO::Portable_Server::ServantRetentionStrategyRetain::unbind_using_user_id ( const PortableServer::ObjectId user_id)
protectedvirtual
PortableServer::Servant TAO::Portable_Server::ServantRetentionStrategyRetain::user_id_to_servant ( const PortableServer::ObjectId id)
virtual
CORBA::ULong TAO::Portable_Server::ServantRetentionStrategyRetain::waiting_servant_deactivation ( void  ) const
virtual

Member Data Documentation

auto_ptr<TAO_Active_Object_Map> TAO::Portable_Server::ServantRetentionStrategyRetain::active_object_map_
private
CORBA::ULong TAO::Portable_Server::ServantRetentionStrategyRetain::waiting_servant_deactivation_
private

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