TAO_PortableServer
2.0.8
|
Map of object ids to servants. More...
#include <Active_Object_Map.h>
Map of object ids to servants.
Implementation to be used by the POA.
Servant hash map.
typedef ACE_Map_Manager_Adapter< PortableServer::Servant, TAO_Active_Object_Map_Entry *, ACE_Noop_Key_Generator<PortableServer::Servant> > TAO_Active_Object_Map::servant_linear_map |
Servant linear map.
typedef ACE_Map< PortableServer::Servant, TAO_Active_Object_Map_Entry *> TAO_Active_Object_Map::servant_map |
Base class of the servant map.
typedef ACE_Active_Map_Manager_Adapter< PortableServer::ObjectId, TAO_Active_Object_Map_Entry *, TAO_Ignore_Original_Key_Adapter> TAO_Active_Object_Map::user_id_active_map |
Id active map.
Id hash map.
typedef ACE_Map_Manager_Adapter< PortableServer::ObjectId, TAO_Active_Object_Map_Entry *, TAO_Incremental_Key_Generator> TAO_Active_Object_Map::user_id_linear_map |
Id linear map.
typedef ACE_Map< PortableServer::ObjectId, TAO_Active_Object_Map_Entry *> TAO_Active_Object_Map::user_id_map |
Base class of the id map.
TAO_Active_Object_Map::TAO_Active_Object_Map | ( | int | user_id_policy, |
int | unique_id_policy, | ||
int | persistent_id_policy, | ||
const TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters & | creation_parameters | ||
) |
Constructor.
TAO_Active_Object_Map::~TAO_Active_Object_Map | ( | void | ) |
Destructor.
int TAO_Active_Object_Map::bind_using_system_id_returning_system_id | ( | PortableServer::Servant | servant, |
CORBA::Short | priority, | ||
PortableServer::ObjectId_out | system_id | ||
) |
Must be used with SYSTEM_ID policy.
int TAO_Active_Object_Map::bind_using_system_id_returning_user_id | ( | PortableServer::Servant | servant, |
CORBA::Short | priority, | ||
PortableServer::ObjectId_out | user_id | ||
) |
Must be used with SYSTEM_ID policy.
int TAO_Active_Object_Map::bind_using_user_id | ( | PortableServer::Servant | servant, |
const PortableServer::ObjectId & | user_id, | ||
CORBA::Short | priority | ||
) |
Can be used with any policy. With the SYSTEM_ID policy, user_id is actually system_id.
size_t TAO_Active_Object_Map::current_size | ( | void | ) |
Size of the map.
int TAO_Active_Object_Map::find_entry_using_user_id | ( | const PortableServer::ObjectId & | user_id, |
TAO_Active_Object_Map_Entry *& | entry | ||
) |
Can be used with any policy. With the SYSTEM_ID policy, user_id is identical to system_id
.
-1 | Entry is not found or is deactivated. |
0 | Entry is found. |
int TAO_Active_Object_Map::find_servant_and_system_id_using_user_id | ( | const PortableServer::ObjectId & | user_id, |
PortableServer::Servant & | servant, | ||
PortableServer::ObjectId_out | system_id, | ||
CORBA::Short & | priority | ||
) |
Can be used with any policy. With the SYSTEM_ID policy, user_id is identical to system_id.
int TAO_Active_Object_Map::find_servant_using_system_id_and_user_id | ( | const PortableServer::ObjectId & | system_id, |
const PortableServer::ObjectId & | user_id, | ||
PortableServer::Servant & | servant, | ||
TAO_Active_Object_Map_Entry *& | entry | ||
) |
Can be used with any policy.
int TAO_Active_Object_Map::find_servant_using_user_id | ( | const PortableServer::ObjectId & | user_id, |
PortableServer::Servant & | servant | ||
) |
Can be used with any policy. With the SYSTEM_ID policy, user_id is actually system_id.
int TAO_Active_Object_Map::find_system_id_using_servant | ( | PortableServer::Servant | servant, |
PortableServer::ObjectId_out | system_id, | ||
CORBA::Short & | priority | ||
) |
Must be used with UNIQUE_ID policy. With the SYSTEM_ID policy, user_id is actually system_id.
int TAO_Active_Object_Map::find_system_id_using_user_id | ( | const PortableServer::ObjectId & | user_id, |
CORBA::Short | priority, | ||
PortableServer::ObjectId_out | system_id | ||
) |
Can be used with any policy. With the SYSTEM_ID policy, user_id is actually system_id.
int TAO_Active_Object_Map::find_user_id_using_servant | ( | PortableServer::Servant | servant, |
PortableServer::ObjectId_out | user_id | ||
) |
Must be used with UNIQUE_ID policy. With the SYSTEM_ID policy, user_id is actually system_id.
int TAO_Active_Object_Map::find_user_id_using_system_id | ( | const PortableServer::ObjectId & | system_id, |
PortableServer::ObjectId_out | user_id | ||
) |
Can be used with any policy. When the SYSTEM_ID policy is used, the system_id is identical to user_id.
int TAO_Active_Object_Map::find_user_id_using_system_id | ( | const PortableServer::ObjectId & | system_id, |
PortableServer::ObjectId & | user_id | ||
) |
Can be used with any policy. When the SYSTEM_ID policy is used, the system_id is identical to user_id.
int TAO_Active_Object_Map::is_servant_in_map | ( | PortableServer::Servant | servant, |
bool & | deactivated | ||
) |
Must be used with UNIQUE_ID policy.
bool TAO_Active_Object_Map::is_user_id_in_map | ( | const PortableServer::ObjectId & | user_id, |
CORBA::Short | priority, | ||
bool & | priorities_match, | ||
bool & | deactivated | ||
) |
Can be used with any policy. With the SYSTEM_ID policy, user_id is actually system_id.
int TAO_Active_Object_Map::rebind_using_user_id_and_system_id | ( | PortableServer::Servant | servant, |
const PortableServer::ObjectId & | user_id, | ||
const PortableServer::ObjectId & | system_id, | ||
TAO_Active_Object_Map_Entry *& | entry | ||
) |
Can be used with any policy.
CORBA::Boolean TAO_Active_Object_Map::remaining_activations | ( | PortableServer::Servant | servant | ) |
Are there any remaining activations of servant in the active object map? Can be used with any policy.
void TAO_Active_Object_Map::set_system_id_size | ( | const TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters & | creation_parameters | ) | [static] |
Set the system id size.
size_t TAO_Active_Object_Map::system_id_size | ( | void | ) | [static] |
Can be used with any policy.
int TAO_Active_Object_Map::unbind_using_user_id | ( | const PortableServer::ObjectId & | user_id | ) |
Can be used with any policy. With the SYSTEM_ID policy, user_id is actually system_id.
Id assignment strategy.
Id hint strategy.
Id uniqueness strategy.
Lifespan strategy.
Servant map.
size_t TAO_Active_Object_Map::system_id_size_ = 0 [static] |
Size of the system id produced by the map.
Flag to see if we are using active maps in this active object map.