TAO_Creation_Strategy< SVC_HANDLER > Class Template Reference

Creates a Svc_Handler and set the ORB_Core pointer on it. More...

#include <Acceptor_Impl.h>

Inheritance diagram for TAO_Creation_Strategy< SVC_HANDLER >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Creation_Strategy< SVC_HANDLER >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Creation_Strategy (TAO_ORB_Core *orb_core, CORBA::Boolean flag=false)
int make_svc_handler (SVC_HANDLER *&sh)
 Create a SVC_HANDLER and set the ORB_Core pointer on it.


Protected Attributes

TAO_ORB_Coreorb_core_
 Pointer to the ORB Core.

CORBA::Boolean lite_flag_
 Should we use the Lite version for any protocol?


Detailed Description

template<class SVC_HANDLER>
class TAO_Creation_Strategy< SVC_HANDLER >

Creates a Svc_Handler and set the ORB_Core pointer on it.

Definition at line 38 of file Acceptor_Impl.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Creation_Strategy< SVC_HANDLER >::TAO_Creation_Strategy TAO_ORB_Core orb_core,
CORBA::Boolean  flag = false
 

Constructor.

Definition at line 41 of file Acceptor_Impl.cpp.

00043   : ACE_Creation_Strategy<SVC_HANDLER> (0, orb_core->reactor()),
00044     orb_core_ (orb_core),
00045     lite_flag_ (flag)
00046 {
00047 }


Member Function Documentation

template<class SVC_HANDLER>
int TAO_Creation_Strategy< SVC_HANDLER >::make_svc_handler SVC_HANDLER *&  sh  )  [virtual]
 

Create a SVC_HANDLER and set the ORB_Core pointer on it.

Reimplemented from ACE_Creation_Strategy< SVC_HANDLER >.

Definition at line 50 of file Acceptor_Impl.cpp.

References ACE_NEW_RETURN, TAO_ORB_Core::lane_resources(), TAO_Creation_Strategy< SVC_HANDLER >::orb_core_, TAO::Transport_Cache_Manager::purge(), and TAO_Thread_Lane_Resources::transport_cache().

00051 {
00052   if (sh == 0)
00053     {
00054       // Purge connections (if necessary)
00055       this->orb_core_->lane_resources ().transport_cache ().purge ();
00056 
00057       ACE_NEW_RETURN (sh,
00058                       SVC_HANDLER (this->orb_core_,
00059                                    this->lite_flag_),
00060                       -1);
00061     }
00062 
00063   return 0;
00064 }


Member Data Documentation

template<class SVC_HANDLER>
CORBA::Boolean TAO_Creation_Strategy< SVC_HANDLER >::lite_flag_ [protected]
 

Should we use the Lite version for any protocol?

Definition at line 55 of file Acceptor_Impl.h.

template<class SVC_HANDLER>
TAO_ORB_Core* TAO_Creation_Strategy< SVC_HANDLER >::orb_core_ [protected]
 

Pointer to the ORB Core.

Definition at line 52 of file Acceptor_Impl.h.

Referenced by TAO_Creation_Strategy< SVC_HANDLER >::make_svc_handler().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:13:09 2006 for TAO by doxygen 1.3.6