Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes

TAO_ThreadpoolPolicy Class Reference

RTCORBA::ThreadpoolPolicy implementation. More...

#include <RT_Policy_i.h>

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

List of all members.

Public Member Functions

 TAO_ThreadpoolPolicy (RTCORBA::ThreadpoolId id)
 Constructor.
 TAO_ThreadpoolPolicy (const TAO_ThreadpoolPolicy &rhs)
 Copy constructor.
RTCORBA::ThreadpoolId threadpool (void)
CORBA::PolicyType policy_type (void)
CORBA::Policy_ptr copy (void)
void destroy (void)
TAO_Cached_Policy_Type _tao_cached_type (void) const
TAO_Policy_Scope _tao_scope (void) const

Static Public Member Functions

static CORBA::Policy_ptr create (const CORBA::Any &val)

Protected Member Functions

virtual ~TAO_ThreadpoolPolicy (void)

Private Attributes

RTCORBA::ThreadpoolId id_
 Attribute.

Detailed Description

RTCORBA::ThreadpoolPolicy implementation.

This policy controls which threadpool is associated with a POA.

Definition at line 121 of file RT_Policy_i.h.


Constructor & Destructor Documentation

TAO_ThreadpoolPolicy::TAO_ThreadpoolPolicy ( RTCORBA::ThreadpoolId  id  ) 

Constructor.

Definition at line 144 of file RT_Policy_i.cpp.

  : ::CORBA::Object ()
  , ::CORBA::Policy ()
  , RTCORBA::ThreadpoolPolicy ()
  , ::CORBA::LocalObject ()
  , id_ (id)
{
}

TAO_ThreadpoolPolicy::TAO_ThreadpoolPolicy ( const TAO_ThreadpoolPolicy rhs  ) 

Copy constructor.

Definition at line 153 of file RT_Policy_i.cpp.

  : ::CORBA::Object ()
  , ::CORBA::Policy ()
  , RTCORBA::ThreadpoolPolicy ()
  , ::CORBA::LocalObject ()
  , id_ (rhs.id_)
{
}

TAO_ThreadpoolPolicy::~TAO_ThreadpoolPolicy ( void   )  [protected, virtual]

Protected destructor to enforce proper memory management of this reference counted object.

Definition at line 162 of file RT_Policy_i.cpp.

{
}


Member Function Documentation

TAO_Cached_Policy_Type TAO_ThreadpoolPolicy::_tao_cached_type ( void   )  const

Definition at line 212 of file RT_Policy_i.cpp.

{
  return TAO_CACHED_POLICY_THREADPOOL;
}

TAO_Policy_Scope TAO_ThreadpoolPolicy::_tao_scope ( void   )  const

Definition at line 218 of file RT_Policy_i.cpp.

{
  return static_cast<TAO_Policy_Scope> (TAO_POLICY_ORB_SCOPE |
                          TAO_POLICY_POA_SCOPE);
}

CORBA::Policy_ptr TAO_ThreadpoolPolicy::copy ( void   ) 

Definition at line 195 of file RT_Policy_i.cpp.

{
  TAO_ThreadpoolPolicy* tmp = 0;
  ACE_NEW_THROW_EX (tmp,
                    TAO_ThreadpoolPolicy (*this),
                    CORBA::NO_MEMORY (TAO::VMCID,
                                      CORBA::COMPLETED_NO));

  return tmp;
}

CORBA::Policy_ptr TAO_ThreadpoolPolicy::create ( const CORBA::Any val  )  [static]

Helper method for the implementation of CORBA::ORB::create_policy.

Definition at line 167 of file RT_Policy_i.cpp.

{
  RTCORBA::ThreadpoolId value;
  if (!(val >>= value))
    throw ::CORBA::PolicyError (CORBA::BAD_POLICY_VALUE);

  TAO_ThreadpoolPolicy *tmp = 0;
  ACE_NEW_THROW_EX (tmp,
                    TAO_ThreadpoolPolicy (value),
                    CORBA::NO_MEMORY (TAO::VMCID,
                                      CORBA::COMPLETED_NO));

  return tmp;
}

void TAO_ThreadpoolPolicy::destroy ( void   ) 

Definition at line 207 of file RT_Policy_i.cpp.

{
}

CORBA::PolicyType TAO_ThreadpoolPolicy::policy_type ( void   ) 

Definition at line 189 of file RT_Policy_i.cpp.

{
  return RTCORBA::THREADPOOL_POLICY_TYPE;
}

RTCORBA::ThreadpoolId TAO_ThreadpoolPolicy::threadpool ( void   ) 

Definition at line 183 of file RT_Policy_i.cpp.

{
  return this->id_;
}


Member Data Documentation

RTCORBA::ThreadpoolId TAO_ThreadpoolPolicy::id_ [private]

Attribute.

Definition at line 159 of file RT_Policy_i.h.


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