#include <Servant_Activator.h>
Inheritance diagram for CIAO::Servant_Activator:
Public Member Functions | |
Servant_Activator (CORBA::ORB_ptr o) | |
virtual | ~Servant_Activator (void) |
bool | update_port_activator (const PortableServer::ObjectId &oid) throw (CORBA::SystemException) |
PortableServer::Servant | incarnate (const PortableServer::ObjectId &oid, PortableServer::POA_ptr poa) 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) 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. | |
ACE_SYNCH_MUTEX | mutex_ |
Mutex that synchronizes access to the array. |
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.
|
@ This should be changed at some point of time so that we don't land up with a linear algorithm |
|
|
|
|
|
|
|
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. |
|
Local helper methods.
|
|
|
|
Mutex that synchronizes access to the array.
|
|
Pointer to our ORB.
|
|
Array of port activators.
|
|
Running index of the slot that has been just filled in.
|