Thread_Lane_Resources_Manager.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Thread_Lane_Resources_Manager.h
00006  *
00007  *  Thread_Lane_Resources_Manager.h,v 1.16 2006/04/19 09:08:08 jwillemsen Exp
00008  *
00009  *  @author  Irfan Pyarali
00010  */
00011 // ============================================================================
00012 
00013 #ifndef TAO_THREAD_LANE_RESOURCES_MANAGER_H
00014 #define TAO_THREAD_LANE_RESOURCES_MANAGER_H
00015 
00016 #include /**/ "ace/pre.h"
00017 #include "ace/CORBA_macros.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 #include "ace/Service_Object.h"
00024 
00025 #include "tao/TAO_Export.h"
00026 #include "tao/Versioned_Namespace.h"
00027 
00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00029 
00030 class TAO_ORB_Core;
00031 class TAO_Thread_Lane_Resources;
00032 class TAO_LF_Strategy;
00033 class TAO_MProfile;
00034 
00035 namespace CORBA
00036 {
00037   class Environment;
00038 }
00039 
00040 /**
00041  * @class TAO_Thread_Lane_Resources_Manager
00042  *
00043  * @brief This class is a manager for thread resources.
00044  *
00045  * \nosubgrouping
00046  *
00047  **/
00048 class TAO_Export TAO_Thread_Lane_Resources_Manager
00049 {
00050 public:
00051 
00052   /// Constructor.
00053   TAO_Thread_Lane_Resources_Manager (TAO_ORB_Core &orb_core);
00054 
00055   /// Destructor.
00056   virtual ~TAO_Thread_Lane_Resources_Manager (void);
00057 
00058   /// Finalize resources.
00059   virtual void finalize (void) = 0;
00060 
00061   /// Open default resources.
00062   virtual int open_default_resources (ACE_ENV_SINGLE_ARG_DECL) = 0;
00063 
00064   /// Shutdown reactor.
00065   virtual void shutdown_reactor (void) = 0;
00066 
00067   /// Cleanup transports that use the RW strategy since there are no
00068   /// ways to wake threads up waiting on those sockets.
00069   virtual void cleanup_rw_transports (void) = 0;
00070 
00071   /// Does @a mprofile belong to us?
00072   virtual int is_collocated (const TAO_MProfile& mprofile) = 0;
00073 
00074   /// @name Accessors
00075   // @{
00076 
00077   virtual TAO_Thread_Lane_Resources &lane_resources (void) = 0;
00078 
00079   virtual TAO_Thread_Lane_Resources &default_lane_resources (void) = 0;
00080 
00081   TAO_LF_Strategy &lf_strategy (void);
00082 
00083   // @}
00084 
00085 protected:
00086   /// The ORB Core.
00087   TAO_ORB_Core * const orb_core_;
00088 
00089   /// The leader follower strategy
00090   TAO_LF_Strategy *lf_strategy_;
00091 };
00092 
00093 /**
00094  * @class TAO_Thread_Lane_Resources_Manager_Factory
00095  *
00096  * @brief This class is a factory for managers of thread resources.
00097  *
00098  * \nosubgrouping
00099  *
00100  **/
00101 class TAO_Export TAO_Thread_Lane_Resources_Manager_Factory
00102   : public ACE_Service_Object
00103 {
00104 public:
00105 
00106   /// Virtual destructor.
00107   virtual ~TAO_Thread_Lane_Resources_Manager_Factory (void);
00108 
00109   /// Factory method.
00110   virtual TAO_Thread_Lane_Resources_Manager *
00111   create_thread_lane_resources_manager (TAO_ORB_Core &core) = 0;
00112 
00113 };
00114 
00115 TAO_END_VERSIONED_NAMESPACE_DECL
00116 
00117 
00118 #include /**/ "ace/post.h"
00119 
00120 #endif /* TAO_THREAD_LANE_RESOURCES_MANAGER_H */

Generated on Thu Nov 9 11:54:25 2006 for TAO by doxygen 1.3.6