TAO_CosNaming
2.1.6
|
#include <Storable_Naming_Context_Activator.h>
Public Member Functions | |
TAO_Storable_Naming_Context_Activator (CORBA::ORB_ptr orb, TAO_Naming_Service_Persistence_Factory *factory, const ACE_TCHAR *persistence_directory, size_t context_size) | |
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_Naming_Service_Persistence_Factory * | factory_ |
const ACE_TCHAR * | persistence_directory_ |
size_t | context_size_ |
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.
TAO_Storable_Naming_Context_Activator::TAO_Storable_Naming_Context_Activator | ( | CORBA::ORB_ptr | orb, |
TAO_Naming_Service_Persistence_Factory * | factory, | ||
const ACE_TCHAR * | persistence_directory, | ||
size_t | context_size | ||
) |
The constructor takes arguments needed to create a TAO_Storable_Naming_Context and TAO_Naming_Context on demand.
|
virtual |
|
virtual |
Used by the POA to delete the servant created from a call to incarnate.
|
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.
|
private |
|
private |
|
private |
|
private |