TAO_CosNaming  2.3.3
Public Member Functions | Private Attributes | List of all members
TAO_Storable_Naming_Context_Activator Class Reference

#include <Storable_Naming_Context_Activator.h>

Inheritance diagram for TAO_Storable_Naming_Context_Activator:
Inheritance graph
[legend]
Collaboration diagram for TAO_Storable_Naming_Context_Activator:
Collaboration graph
[legend]

Public Member Functions

 TAO_Storable_Naming_Context_Activator (CORBA::ORB_ptr orb, TAO::Storable_Factory *factory, TAO_Storable_Naming_Context_Factory *context_impl_factory, const ACE_TCHAR *)
 
virtual ~TAO_Storable_Naming_Context_Activator ()
 
virtual PortableServer::Servant incarnate (const PortableServer::ObjectId &oid, PortableServer::POA_ptr poa)
 
virtual void etherealize (const PortableServer::ObjectId &oid, PortableServer::POA_ptr adapter, PortableServer::Servant servant, CORBA::Boolean cleanup_in_progress, CORBA::Boolean remaining_activations)
 

Private Attributes

CORBA::ORB_ptr orb_
 
TAO::Storable_Factorypersistence_factory_
 The factory for constructing the persistence mechanism for the contexts. More...
 
TAO_Storable_Naming_Context_Factorycontext_impl_factory_
 The factory for constructing naming contexts within the index. More...
 

Detailed Description

A servant activator to be use with a TAO_Storable_Naming_Context. Permits contexts saved to disk in one naming service process to be "lazily" created on demand in other processes by reading the context file off disk only when a request to the context is made.

Constructor & Destructor Documentation

TAO_Storable_Naming_Context_Activator::TAO_Storable_Naming_Context_Activator ( CORBA::ORB_ptr  orb,
TAO::Storable_Factory factory,
TAO_Storable_Naming_Context_Factory context_impl_factory,
const ACE_TCHAR  
)

The constructor takes arguments needed to create a TAO_Storable_Naming_Context and TAO_Naming_Context on demand.

TAO_Storable_Naming_Context_Activator::~TAO_Storable_Naming_Context_Activator ( )
virtual

Member Function Documentation

void TAO_Storable_Naming_Context_Activator::etherealize ( const PortableServer::ObjectId oid,
PortableServer::POA_ptr  adapter,
PortableServer::Servant  servant,
CORBA::Boolean  cleanup_in_progress,
CORBA::Boolean  remaining_activations 
)
virtual

Used by the POA to delete the servant created from a call to incarnate.

PortableServer::Servant TAO_Storable_Naming_Context_Activator::incarnate ( const PortableServer::ObjectId oid,
PortableServer::POA_ptr  poa 
)
virtual

Create a TAO_Storable_Naming_Context and TAO_Naming_Context on demand if a request to a naming context CORBA reference is made and the servant implementing this reference does not yet exist.

Member Data Documentation

TAO_Storable_Naming_Context_Factory* TAO_Storable_Naming_Context_Activator::context_impl_factory_
private

The factory for constructing naming contexts within the index.

CORBA::ORB_ptr TAO_Storable_Naming_Context_Activator::orb_
private
TAO::Storable_Factory* TAO_Storable_Naming_Context_Activator::persistence_factory_
private

The factory for constructing the persistence mechanism for the contexts.


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