00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_SERVANT_RETENTION_STRATEGY_NON_RETAIN_H
00014 #define TAO_SERVANT_RETENTION_STRATEGY_NON_RETAIN_H
00015 #include "ace/pre.h"
00016
00017 #include "tao/PortableServer/ServantRetentionStrategy.h"
00018
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif
00022
00023 #include "tao/PortableServer/Servant_Location.h"
00024
00025 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00026
00027 class TAO_Root_POA;
00028
00029 namespace TAO
00030 {
00031 namespace Portable_Server
00032 {
00033 class ServantRetentionStrategyNonRetain
00034 : public ServantRetentionStrategy
00035 {
00036 public:
00037 ServantRetentionStrategyNonRetain (void);
00038
00039 virtual void strategy_init (TAO_Root_POA *poa);
00040
00041 virtual void strategy_cleanup(void);
00042
00043 CORBA::ULong waiting_servant_deactivation (void) const;
00044
00045 virtual
00046 PortableServer::ObjectId *
00047 activate_object (PortableServer::Servant servant,
00048 CORBA::Short priority,
00049 bool &wait_occurred_restart_call);
00050
00051 #if !defined (CORBA_E_MICRO)
00052 virtual
00053 void
00054 activate_object_with_id (const PortableServer::ObjectId &id,
00055 PortableServer::Servant servant,
00056 CORBA::Short priority,
00057 bool &wait_occurred_restart_call);
00058 #endif
00059
00060 virtual void deactivate_object (const PortableServer::ObjectId &id);
00061
00062 virtual PortableServer::Servant find_servant (
00063 const PortableServer::ObjectId &system_id);
00064
00065 virtual int is_servant_in_map (PortableServer::Servant servant,
00066 bool &wait_occurred_restart_call);
00067
00068 virtual PortableServer::ObjectId *system_id_to_object_id (
00069 const PortableServer::ObjectId &system_id);
00070
00071 virtual
00072 PortableServer::Servant
00073 user_id_to_servant (const PortableServer::ObjectId &id);
00074
00075 CORBA::Object_ptr
00076 id_to_reference (const PortableServer::ObjectId &id,
00077 bool indirect);
00078
00079 virtual TAO_SERVANT_LOCATION servant_present (
00080 const PortableServer::ObjectId &system_id,
00081 PortableServer::Servant &servant);
00082
00083 virtual PortableServer::Servant find_servant (
00084 const PortableServer::ObjectId &system_id,
00085 TAO::Portable_Server::Servant_Upcall &servant_upcall,
00086 TAO::Portable_Server::POA_Current_Impl &poa_current_impl);
00087
00088 virtual int find_servant_priority (
00089 const PortableServer::ObjectId &system_id,
00090 CORBA::Short &priority);
00091
00092 virtual void deactivate_all_objects (void);
00093
00094 virtual PortableServer::ObjectId *servant_to_user_id (
00095 PortableServer::Servant servant);
00096
00097 virtual CORBA::Object_ptr servant_to_reference (
00098 PortableServer::Servant servant);
00099
00100 virtual CORBA::Object_ptr create_reference (
00101 const char *intf,
00102 CORBA::Short priority);
00103
00104 #if !defined (CORBA_E_MICRO)
00105 virtual CORBA::Object_ptr create_reference_with_id (
00106 const PortableServer::ObjectId &oid,
00107 const char *intf,
00108 CORBA::Short priority);
00109 #endif
00110
00111 virtual int rebind_using_user_id_and_system_id (
00112 PortableServer::Servant servant,
00113 const PortableServer::ObjectId &user_id,
00114 const PortableServer::ObjectId &system_id,
00115 TAO::Portable_Server::Servant_Upcall &servant_upcall);
00116
00117 virtual CORBA::Boolean servant_has_remaining_activations (
00118 PortableServer::Servant servant);
00119
00120 virtual int unbind_using_user_id (
00121 const PortableServer::ObjectId &user_id);
00122
00123 virtual ::PortableServer::ServantRetentionPolicyValue type() const;
00124
00125 protected:
00126 TAO_Root_POA *poa_;
00127 };
00128 }
00129 }
00130
00131 TAO_END_VERSIONED_NAMESPACE_DECL
00132
00133 #include "ace/post.h"
00134 #endif