00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file RequestProcessingStrategyAOMOnly.h 00006 * 00007 * $Id: RequestProcessingStrategyAOMOnly.h 76995 2007-02-11 12:51:42Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_REQUESTPROCESSINGSTRATEGYAOMONLY_H 00014 #define TAO_REQUESTPROCESSINGSTRATEGYAOMONLY_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_Location.h" 00024 #include "tao/PortableServer/PortableServer.h" 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 namespace TAO 00029 { 00030 namespace Portable_Server 00031 { 00032 /** 00033 * @class RequestProcessingStrategyAOMOnly 00034 * 00035 * Request Processing Strategy which only uses the Active Object Map (AOM) 00036 */ 00037 class RequestProcessingStrategyAOMOnly 00038 : public RequestProcessingStrategy 00039 { 00040 public: 00041 RequestProcessingStrategyAOMOnly (void); 00042 00043 #if (TAO_HAS_MINIMUM_POA == 0) 00044 00045 PortableServer::ServantManager_ptr 00046 get_servant_manager (void); 00047 00048 void 00049 set_servant_manager (PortableServer::ServantManager_ptr imgr 00050 ); 00051 00052 void 00053 set_servant (PortableServer::Servant servant 00054 ); 00055 00056 #endif /* TAO_HAS_MINIMUM_POA == 0 */ 00057 00058 PortableServer::Servant 00059 get_servant (void); 00060 00061 virtual 00062 TAO_SERVANT_LOCATION 00063 locate_servant (const PortableServer::ObjectId &system_id, 00064 PortableServer::Servant &servant 00065 ); 00066 00067 virtual 00068 PortableServer::Servant 00069 locate_servant (const char *operation, 00070 const PortableServer::ObjectId &system_id, 00071 TAO::Portable_Server::Servant_Upcall &servant_upcall, 00072 TAO::Portable_Server::POA_Current_Impl &poa_current_impl, 00073 bool &wait_occurred_restart_call 00074 ); 00075 00076 virtual PortableServer::Servant system_id_to_servant ( 00077 const PortableServer::ObjectId &system_id 00078 ); 00079 00080 virtual PortableServer::Servant id_to_servant ( 00081 const PortableServer::ObjectId &id 00082 ); 00083 00084 virtual void cleanup_servant ( 00085 PortableServer::Servant servant, 00086 const PortableServer::ObjectId &user_id 00087 ); 00088 00089 virtual void etherealize_objects (CORBA::Boolean etherealize_objects); 00090 00091 virtual PortableServer::ObjectId *servant_to_id ( 00092 PortableServer::Servant servant 00093 ); 00094 00095 virtual void post_invoke_servant_cleanup( 00096 const PortableServer::ObjectId &system_id, 00097 const TAO::Portable_Server::Servant_Upcall &servant_upcall); 00098 00099 virtual ::PortableServer::RequestProcessingPolicyValue type() const; 00100 }; 00101 } 00102 } 00103 00104 TAO_END_VERSIONED_NAMESPACE_DECL 00105 00106 #include /**/ "ace/post.h" 00107 #endif /* TAO_REQUESTPROCESSINGSTRATEGYAOMONLY_H */