Default_Servant_Dispatcher.cpp

Go to the documentation of this file.
00001 // $Id: Default_Servant_Dispatcher.cpp 77248 2007-02-20 16:06:37Z jai $
00002 
00003 #include "tao/PortableServer/Default_Servant_Dispatcher.h"
00004 #include "tao/PortableServer/Root_POA.h"
00005 #include "tao/PortableServer/Network_Priority_Hook.h"
00006 
00007 ACE_RCSID(PortableServer,
00008           Default_Servant_Dispatcher,
00009           "$Id: Default_Servant_Dispatcher.cpp 77248 2007-02-20 16:06:37Z jai $")
00010 
00011 #include "ace/CORBA_macros.h"
00012 
00013 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00014 
00015 TAO_Default_Servant_Dispatcher::~TAO_Default_Servant_Dispatcher (void)
00016 {
00017 }
00018 
00019 TAO_Root_POA *
00020 TAO_Default_Servant_Dispatcher::create_Root_POA (const ACE_CString &name,
00021                                                  PortableServer::POAManager_ptr poa_manager,
00022                                                  const TAO_POA_Policy_Set &policies,
00023                                                  ACE_Lock &lock,
00024                                                  TAO_SYNCH_MUTEX &thread_lock,
00025                                                  TAO_ORB_Core &orb_core,
00026                                                  TAO_Object_Adapter *object_adapter)
00027 {
00028   TAO_Root_POA *poa = 0;
00029 
00030   ACE_NEW_THROW_EX (poa,
00031                     TAO_Root_POA (name,
00032                                   poa_manager,
00033                                   policies,
00034                                   0,
00035                                   lock,
00036                                   thread_lock,
00037                                   orb_core,
00038                                   object_adapter),
00039                     CORBA::NO_MEMORY ());
00040 
00041   return poa;
00042 }
00043 
00044 void
00045 TAO_Default_Servant_Dispatcher::pre_invoke_remote_request (
00046   TAO_Root_POA &poa,
00047   CORBA::Short,
00048   TAO_ServerRequest &req,
00049   TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &)
00050 {
00051   poa.network_priority_hook ()-> set_dscp_codepoint (req, poa);
00052 }
00053 
00054 void
00055 TAO_Default_Servant_Dispatcher::pre_invoke_collocated_request (
00056   TAO_Root_POA &,
00057   CORBA::Short,
00058   TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &)
00059 {
00060 }
00061 
00062 void
00063 TAO_Default_Servant_Dispatcher::post_invoke (
00064   TAO_Root_POA &,
00065   TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &)
00066 {
00067 }
00068 
00069 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:40:54 2010 for TAO_PortableServer by  doxygen 1.4.7