TAO_RTCORBA  2.0.8
Public Types | Public Member Functions | Private Member Functions | Private Attributes
TAO_RT_ORBInitializer Class Reference

RTCORBA ORB initializer. More...

#include <RT_ORBInitializer.h>

Inheritance diagram for TAO_RT_ORBInitializer:
Inheritance graph
[legend]
Collaboration diagram for TAO_RT_ORBInitializer:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { TAO_PRIORITY_MAPPING_CONTINUOUS, TAO_PRIORITY_MAPPING_LINEAR, TAO_PRIORITY_MAPPING_DIRECT }
 Priority mapping types. More...
enum  { TAO_NETWORK_PRIORITY_MAPPING_LINEAR }
enum  TAO_RTCORBA_DT_LifeSpan { TAO_RTCORBA_DT_INFINITIVE, TAO_RTCORBA_DT_IDLE, TAO_RTCORBA_DT_FIXED }

Public Member Functions

 TAO_RT_ORBInitializer (int priority_mapping_type, int network_priority_mapping_type, int ace_sched_policy, long sched_policy, long scope_policy, TAO_RT_ORBInitializer::TAO_RTCORBA_DT_LifeSpan lifespan, ACE_Time_Value const &dynamic_thread_time)
virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info)
virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info)

Private Member Functions

void register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info)
 Register RTCORBA policy factories.

Private Attributes

PortableInterceptor::PolicyFactory_var policy_factory_
 Instance of the RTCorba policy factory.
int const priority_mapping_type_
 Priority mapping type.
int const network_priority_mapping_type_
 Network Priority mapping type.
int const ace_sched_policy_
 Scheduling policy.
long const sched_policy_
 Scheduling policy flag.
long const scope_policy_
 Scheduling scope flag.
TAO_RT_ORBInitializer::TAO_RTCORBA_DT_LifeSpan lifespan_
 Dynamic thread lifespan policy.
ACE_Time_Value const dynamic_thread_time_
 Dynamic thread time.

Detailed Description

RTCORBA ORB initializer.


Member Enumeration Documentation

anonymous enum

Priority mapping types.

Enumerator:
TAO_PRIORITY_MAPPING_CONTINUOUS 
TAO_PRIORITY_MAPPING_LINEAR 
TAO_PRIORITY_MAPPING_DIRECT 
anonymous enum
Enumerator:
TAO_NETWORK_PRIORITY_MAPPING_LINEAR 

Lifespan of the dynamic threads TAO_RTCORBA_DT_INFINITIVE When the Dynamic Thread is created it will run forever TAO_RTCORBA_DT_IDLE When the Dynamic Thread is created it will run until it has been idle for the specified amount of time TAO_RTCORBA_DT_FIXED When the Dynamic Thread is created it will run for the specified fix amount of time

Enumerator:
TAO_RTCORBA_DT_INFINITIVE 
TAO_RTCORBA_DT_IDLE 
TAO_RTCORBA_DT_FIXED 

Constructor & Destructor Documentation

TAO_RT_ORBInitializer::TAO_RT_ORBInitializer ( int  priority_mapping_type,
int  network_priority_mapping_type,
int  ace_sched_policy,
long  sched_policy,
long  scope_policy,
TAO_RT_ORBInitializer::TAO_RTCORBA_DT_LifeSpan  lifespan,
ACE_Time_Value const &  dynamic_thread_time 
)

Member Function Documentation

void TAO_RT_ORBInitializer::post_init ( PortableInterceptor::ORBInitInfo_ptr  info) [virtual]
void TAO_RT_ORBInitializer::pre_init ( PortableInterceptor::ORBInitInfo_ptr  info) [virtual]
void TAO_RT_ORBInitializer::register_policy_factories ( PortableInterceptor::ORBInitInfo_ptr  info) [private]

Register RTCORBA policy factories.


Member Data Documentation

Scheduling policy.

Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by functions like ACE_OS::thr_setprio() and ACE_Sched_Params::priority_min(). Legal values are ACE_SCHED_RR, ACE_SCHED_FIFO, and ACE_SCHED_OTHER.

Dynamic thread time.

When using thread pool a certain number of dynamic threads can be created. By default these threads are created when needed but never end. Optionally a time can be specified

Dynamic thread lifespan policy.

Network Priority mapping type.

PortableInterceptor::PolicyFactory_var TAO_RT_ORBInitializer::policy_factory_ [private]

Instance of the RTCorba policy factory.

The RTCorba policy factory is stateless and reentrant, so share a single instance between all ORBs.

Priority mapping type.

Scheduling policy flag.

Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCHED_RR, THR_SCHED_FIFO, and THR_SCHED_DEFAULT.

Scheduling scope flag.

Scheduling policy specified by the user through the -ORBScopePolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCOPE_SYSTEM and THR_SCOPE_PROCESS.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines