RequestProcessingStrategyDefaultServant.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file RequestProcessingStrategyDefaultServant.h
00006  *
00007  *  $Id: RequestProcessingStrategyDefaultServant.h 76995 2007-02-11 12:51:42Z johnnyw $
00008  *
00009  *  @author  Johnny Willemsen  <jwillemsen@remedy.nl>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef TAO_REQUESTPROCESSINGSTRATEGYDEFAULTSERVANT_H
00014 #define TAO_REQUESTPROCESSINGSTRATEGYDEFAULTSERVANT_H
00015 #include /**/ "ace/pre.h"
00016 
00017 #include "tao/PortableServer/RequestProcessingStrategy.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 #include "tao/PortableServer/Servant_Base.h"
00024 
00025 #include "tao/PortableServer/Servant_Location.h"
00026 #include "tao/PortableServer/PortableServer.h"
00027 
00028 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
00029 
00030 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00031 
00032 class TAO_Root_POA;
00033 
00034 namespace TAO
00035 {
00036   namespace Portable_Server
00037   {
00038     class RequestProcessingStrategyDefaultServant
00039       : public RequestProcessingStrategy
00040     {
00041     public:
00042       RequestProcessingStrategyDefaultServant (void);
00043 
00044       virtual void strategy_cleanup(void);
00045 
00046       PortableServer::ServantManager_ptr
00047       get_servant_manager (void);
00048 
00049       void set_servant_manager (
00050         PortableServer::ServantManager_ptr imgr
00051         );
00052 
00053       PortableServer::Servant get_servant (void);
00054 
00055       void set_servant (
00056         PortableServer::Servant servant
00057         );
00058 
00059       virtual TAO_SERVANT_LOCATION locate_servant (
00060         const PortableServer::ObjectId &system_id,
00061         PortableServer::Servant &servant
00062        );
00063 
00064       virtual PortableServer::Servant locate_servant (
00065         const char *operation,
00066         const PortableServer::ObjectId &system_id,
00067         TAO::Portable_Server::Servant_Upcall &servant_upcall,
00068         TAO::Portable_Server::POA_Current_Impl &poa_current_impl,
00069         bool &wait_occurred_restart_call
00070        );
00071 
00072       virtual PortableServer::Servant system_id_to_servant (
00073         const PortableServer::ObjectId &system_id
00074        );
00075 
00076       virtual PortableServer::Servant id_to_servant (
00077         const PortableServer::ObjectId &id
00078         );
00079 
00080       virtual void cleanup_servant (
00081         PortableServer::Servant servant,
00082         const PortableServer::ObjectId &user_id
00083        );
00084 
00085       virtual void etherealize_objects (CORBA::Boolean etherealize_objects);
00086 
00087       virtual PortableServer::ObjectId *servant_to_id (
00088         PortableServer::Servant servant
00089         );
00090 
00091       virtual void post_invoke_servant_cleanup(
00092         const PortableServer::ObjectId &system_id,
00093         const TAO::Portable_Server::Servant_Upcall &servant_upcall);
00094 
00095       virtual ::PortableServer::RequestProcessingPolicyValue type() const;
00096 
00097     private:
00098       PortableServer::ServantBase_var default_servant_;
00099     };
00100 
00101   }
00102 }
00103 
00104 TAO_END_VERSIONED_NAMESPACE_DECL
00105 
00106 #endif /* TAO_HAS_MINIMUM_POA == 0 */
00107 
00108 #include /**/ "ace/post.h"
00109 #endif /* TAO_REQUESTPROCESSINGSTRATEGYDEFAULTSERVANT_H */

Generated on Sun Jan 27 13:23:43 2008 for TAO_PortableServer by doxygen 1.3.6