RTResource_Config_Manager maintains a collection of RTCORBA related resources. More...
#include <RTConfig_Manager.h>
Public Member Functions | |
RTResource_Config_Manager (void) | |
~RTResource_Config_Manager (void) | |
virtual void | init (CORBA::ORB_ptr orb) |
virtual int | pre_orb_initialize (void) |
virtual int | post_orb_initialize (CORBA::ORB_ptr o) |
virtual void | init_resources (const ServerResource &info) |
Initializing the RTResource_Config_Manager. | |
void | fini () |
virtual CORBA::PolicyList * | find_policies_by_name (const char *name) |
Query a policy set by name. | |
virtual bool | policy_exists (const char *name) |
Protected Member Functions | |
void | print_resources (const ServerResource &info) |
RTCORBA::ThreadpoolId | find_threadpool_by_name (const char *name) |
Query a thread pool by name. | |
RTCORBA::PriorityBands * | find_priority_bands_by_name (const char *name) |
Query a priority bands info by name. | |
Private Types | |
typedef ACE_Hash_Map_Manager_Ex < ACE_CString, RTCORBA::ThreadpoolId, ACE_Hash< ACE_CString > , ACE_Equal_To< ACE_CString > , ACE_Null_Mutex > | TP_MAP |
Hash_Map stuff. | |
typedef ACE_Hash_Map_Manager_Ex < ACE_CString, RTCORBA::PriorityBands_var, ACE_Hash< ACE_CString > , ACE_Equal_To< ACE_CString > , ACE_Null_Mutex > | PB_MAP |
typedef ACE_Hash_Map_Manager_Ex < ACE_CString, CORBA::PolicyList_var, ACE_Hash< ACE_CString > , ACE_Equal_To< ACE_CString > , ACE_Null_Mutex > | POLICY_MAP |
Hash_Map stuff. | |
Private Member Functions | |
CORBA::Policy_ptr | create_single_policy (const PolicyDef &policy_def) |
create a single policy | |
Private Attributes | |
CORBA::ORB_var | orb_ |
Cached an ORB reference. | |
RTCORBA::RTORB_var | rtorb_ |
TP_MAP | threadpool_map_ |
Internal TP name to id map. | |
PB_MAP | priority_bands_map_ |
Internal PB name to priority bands map. | |
POLICY_MAP | policy_map_ |
Internal TP names to id map. |
RTResource_Config_Manager maintains a collection of RTCORBA related resources.
This class is responsible to create and manage a list of RTCORBA related resources that are global to an RT ComponentServer. The information required to create and configure these resources are passed in via the info argument in the init
method. These resources are identified by names and can be used to associate these resources with related RTPolicies. These resources are destoryed along with this class.
Currently, the only resources supported (and managed) by this class are Threadpool and Threadpool_with_Lanes.
typedef ACE_Hash_Map_Manager_Ex<ACE_CString, RTCORBA::PriorityBands_var, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> CIAO::Deployment::RTResource_Config_Manager::PB_MAP [private] |
typedef ACE_Hash_Map_Manager_Ex<ACE_CString, CORBA::PolicyList_var, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> CIAO::Deployment::RTResource_Config_Manager::POLICY_MAP [private] |
Hash_Map stuff.
typedef ACE_Hash_Map_Manager_Ex<ACE_CString, RTCORBA::ThreadpoolId, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> CIAO::Deployment::RTResource_Config_Manager::TP_MAP [private] |
Hash_Map stuff.
CIAO::Deployment::RTResource_Config_Manager::RTResource_Config_Manager | ( | void | ) |
CIAO::Deployment::RTResource_Config_Manager::~RTResource_Config_Manager | ( | void | ) |
CORBA::Policy_ptr CIAO::Deployment::RTResource_Config_Manager::create_single_policy | ( | const PolicyDef & | policy_def | ) | [private] |
create a single policy
CORBA::PolicyList * CIAO::Deployment::RTResource_Config_Manager::find_policies_by_name | ( | const char * | name | ) | [virtual] |
Query a policy set by name.
Implements CIAO::Deployment::Config_Manager.
RTCORBA::PriorityBands * CIAO::Deployment::RTResource_Config_Manager::find_priority_bands_by_name | ( | const char * | name | ) | [protected] |
Query a priority bands info by name.
RTCORBA::ThreadpoolId CIAO::Deployment::RTResource_Config_Manager::find_threadpool_by_name | ( | const char * | name | ) | [protected] |
Query a thread pool by name.
void CIAO::Deployment::RTResource_Config_Manager::fini | ( | ) |
Finalizing the RTResource_Config_Manager and the resources it manages.
void CIAO::Deployment::RTResource_Config_Manager::init | ( | CORBA::ORB_ptr | orb | ) | [virtual] |
Implements CIAO::Deployment::Config_Manager.
void CIAO::Deployment::RTResource_Config_Manager::init_resources | ( | const ServerResource & | info | ) | [virtual] |
Initializing the RTResource_Config_Manager.
Implements CIAO::Deployment::Config_Manager.
bool CIAO::Deployment::RTResource_Config_Manager::policy_exists | ( | const char * | name | ) | [virtual] |
Implements CIAO::Deployment::Config_Manager.
int CIAO::Deployment::RTResource_Config_Manager::post_orb_initialize | ( | CORBA::ORB_ptr | o | ) | [virtual] |
Implements CIAO::Deployment::Config_Manager.
int CIAO::Deployment::RTResource_Config_Manager::pre_orb_initialize | ( | void | ) | [virtual] |
Implements CIAO::Deployment::Config_Manager.
void CIAO::Deployment::RTResource_Config_Manager::print_resources | ( | const ServerResource & | info | ) | [protected] |
Cached an ORB reference.
Internal TP names to id map.
Internal PB name to priority bands map.
RTCORBA::RTORB_var CIAO::Deployment::RTResource_Config_Manager::rtorb_ [private] |
Internal TP name to id map.