ServantRetentionStrategyNonRetain.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file ServantRetentionStrategyNonRetain.h
00006  *
00007  *  $Id: ServantRetentionStrategyNonRetain.h 76995 2007-02-11 12:51:42Z johnnyw $
00008  *
00009  *  @author  Johnny Willemsen  <jwillemsen@remedy.nl>
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 /* ACE_LACKS_PRAGMA_ONCE */
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 
00072       virtual
00073       PortableServer::Servant
00074       user_id_to_servant (const PortableServer::ObjectId &id);
00075 
00076       CORBA::Object_ptr
00077       id_to_reference (const PortableServer::ObjectId &id,
00078                        bool indirect);
00079 
00080       virtual TAO_SERVANT_LOCATION servant_present (
00081         const PortableServer::ObjectId &system_id,
00082         PortableServer::Servant &servant);
00083 
00084       virtual PortableServer::Servant find_servant (
00085         const PortableServer::ObjectId &system_id,
00086         TAO::Portable_Server::Servant_Upcall &servant_upcall,
00087         TAO::Portable_Server::POA_Current_Impl &poa_current_impl);
00088 
00089       virtual int find_servant_priority (
00090         const PortableServer::ObjectId &system_id,
00091         CORBA::Short &priority);
00092 
00093       virtual void deactivate_all_objects (void);
00094 
00095       virtual PortableServer::ObjectId *servant_to_user_id (
00096         PortableServer::Servant servant);
00097 
00098       virtual CORBA::Object_ptr servant_to_reference (
00099         PortableServer::Servant servant);
00100 
00101       virtual CORBA::Object_ptr create_reference (
00102         const char *intf,
00103         CORBA::Short priority);
00104 
00105       virtual CORBA::Object_ptr create_reference_with_id (
00106         const PortableServer::ObjectId &oid,
00107         const char *intf,
00108         CORBA::Short priority);
00109 
00110       virtual int rebind_using_user_id_and_system_id (
00111         PortableServer::Servant servant,
00112         const PortableServer::ObjectId &user_id,
00113         const PortableServer::ObjectId &system_id,
00114         TAO::Portable_Server::Servant_Upcall &servant_upcall);
00115 
00116       virtual CORBA::Boolean servant_has_remaining_activations (
00117         PortableServer::Servant servant);
00118 
00119       virtual int unbind_using_user_id (
00120         const PortableServer::ObjectId &user_id);
00121 
00122         virtual ::PortableServer::ServantRetentionPolicyValue type() const;
00123 
00124     protected:
00125       TAO_Root_POA *poa_;
00126     };
00127   }
00128 }
00129 
00130 TAO_END_VERSIONED_NAMESPACE_DECL
00131 
00132 #include /**/ "ace/post.h"
00133 #endif /* TAO_SERVANT_RETENTION_STRATEGY_NON_RETAIN_H */

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