CIAO::Deployment::RTResource_Config_Manager Class Reference

RTResource_Config_Manager maintains a collection of RTCORBA related resources. More...

#include <RTConfig_Manager.h>

Inheritance diagram for CIAO::Deployment::RTResource_Config_Manager:

Inheritance graph
[legend]
Collaboration diagram for CIAO::Deployment::RTResource_Config_Manager:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

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.


Member Typedef Documentation

Hash_Map stuff.

Hash_Map stuff.


Constructor & Destructor Documentation

CIAO::Deployment::RTResource_Config_Manager::RTResource_Config_Manager ( void   ) 

CIAO::Deployment::RTResource_Config_Manager::~RTResource_Config_Manager ( void   ) 


Member Function Documentation

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]

void CIAO::Deployment::RTResource_Config_Manager::init_resources ( const ServerResource info  )  [virtual]

bool CIAO::Deployment::RTResource_Config_Manager::policy_exists ( const char *  name  )  [virtual]

int CIAO::Deployment::RTResource_Config_Manager::post_orb_initialize ( CORBA::ORB_ptr  o  )  [virtual]

int CIAO::Deployment::RTResource_Config_Manager::pre_orb_initialize ( void   )  [virtual]

void CIAO::Deployment::RTResource_Config_Manager::print_resources ( const ServerResource info  )  [protected]


Member Data Documentation

Cached an ORB reference.

Internal TP names to id map.

Internal PB name to priority bands map.

Internal TP name to id map.


The documentation for this class was generated from the following files:

Generated on Mon Jul 13 17:17:32 2009 for CIAO by  doxygen 1.5.8