Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CIAO::Servant_Activator Class Reference

Activator that is registered with the POA for facet and consumer servants. More...

#include <Servant_Activator.h>

Inheritance diagram for CIAO::Servant_Activator:

Inheritance graph
Collaboration diagram for CIAO::Servant_Activator:

Collaboration graph
List of all members.

Public Member Functions

 Servant_Activator (CORBA::ORB_ptr o)
virtual ~Servant_Activator (void)
PortableServer::Servant incarnate (const PortableServer::ObjectId &oid, PortableServer::POA_ptr poa ACE_ENV_ARG_DECL) throw (CORBA::SystemException, PortableServer::ForwardRequest)
 Template methods overridden to get callbacks.
void etherealize (const PortableServer::ObjectId &oid, PortableServer::POA_ptr adapter, PortableServer::Servant servant, CORBA::Boolean cleanup_in_progress, CORBA::Boolean remaining_activations ACE_ENV_ARG_DECL) throw (CORBA::SystemException)
bool register_port_activator (Port_Activator *pa)
 Local helper methods.

Private Types

typedef ACE_Array_Base< Port_Activator * > Port_Activators

Private Attributes

CORBA::ORB_var orb_
 Pointer to our ORB.
Port_Activators pa_
 Array of port activators.
size_t slot_index_
 Running index of the slot that has been just filled in.
 Mutex that synchronizes access to the array.

Detailed Description

Activator that is registered with the POA for facet and consumer servants.

This class acts like a factory in some sense. This factory is registered with the POA with RETAIN policy. When the factory gets a call back as part of the upcall, this factory looks at the list of port activators registered, uses the OID to pick the right one (yes a linear algorithm is used), calls activate () on it which returns the servant for *that* port.

Member Typedef Documentation

typedef ACE_Array_Base<Port_Activator *> CIAO::Servant_Activator::Port_Activators [private]

@ This should be changed at some point of time so that we don't land up with a linear algorithm

Constructor & Destructor Documentation

CIAO::Servant_Activator::Servant_Activator CORBA::ORB_ptr  o  ) 

CIAO::Servant_Activator::~Servant_Activator void   )  [virtual]

Member Function Documentation

void CIAO::Servant_Activator::etherealize const PortableServer::ObjectId oid,
PortableServer::POA_ptr  adapter,
PortableServer::Servant  servant,
CORBA::Boolean  cleanup_in_progress,
CORBA::Boolean remaining_activations  ACE_ENV_ARG_DECL
throw (CORBA::SystemException) [virtual]

Implements PortableServer::ServantActivator.

PortableServer::Servant CIAO::Servant_Activator::incarnate const PortableServer::ObjectId oid,
PortableServer::POA_ptr poa  ACE_ENV_ARG_DECL
throw (CORBA::SystemException, PortableServer::ForwardRequest)

Template methods overridden to get callbacks.

If you would like to know the details of the following two methods, please PortableServer documentation. This is probably not the place to document what these mean.

bool CIAO::Servant_Activator::register_port_activator Port_Activator pa  ) 

Local helper methods.

Member Data Documentation

ACE_SYNCH_MUTEX CIAO::Servant_Activator::mutex_ [private]

Mutex that synchronizes access to the array.

CORBA::ORB_var CIAO::Servant_Activator::orb_ [private]

Pointer to our ORB.

Port_Activators CIAO::Servant_Activator::pa_ [private]

Array of port activators.

size_t CIAO::Servant_Activator::slot_index_ [private]

Running index of the slot that has been just filled in.

The documentation for this class was generated from the following files:
Generated on Thu Feb 10 21:12:40 2005 for CIAO by  doxygen