Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TAO_GOA_H
00016 #define TAO_GOA_H
00017
00018 #include "ace/pre.h"
00019
00020 #include "orbsvcs/PortableGroup/portablegroup_export.h"
00021
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif
00025
00026 #include "orbsvcs/PortableGroupC.h"
00027 #include "tao/PortableServer/Regular_POA.h"
00028
00029
00030
00031 #if defined(_MSC_VER)
00032 #pragma warning(push)
00033 #pragma warning(disable:4250)
00034 #endif
00035
00036 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00037
00038 class TAO_Profile;
00039 class TAO_PortableGroup_Acceptor_Registry;
00040
00041
00042
00043
00044
00045
00046
00047
00048 class TAO_PortableGroup_Export TAO_GOA :
00049 public virtual PortableGroup::GOA,
00050 public virtual TAO_Regular_POA
00051 {
00052 public:
00053
00054
00055
00056 virtual PortableServer::ObjectId * create_id_for_reference (
00057 CORBA::Object_ptr the_ref);
00058
00059
00060 virtual PortableGroup::IDs * reference_to_ids (
00061 CORBA::Object_ptr the_ref);
00062
00063 virtual void associate_reference_with_id (
00064 CORBA::Object_ptr ref,
00065 const PortableServer::ObjectId & oid);
00066
00067 virtual void disassociate_reference_with_id (
00068 CORBA::Object_ptr ref,
00069 const PortableServer::ObjectId & oid);
00070
00071
00072
00073 PortableServer::POA_ptr create_POA (const char *adapter_name,
00074 PortableServer::POAManager_ptr poa_manager,
00075 const CORBA::PolicyList &policies);
00076
00077 PortableServer::POA_ptr find_POA (const char *adapter_name,
00078 CORBA::Boolean activate_it);
00079
00080 void destroy (CORBA::Boolean etherealize_objects,
00081 CORBA::Boolean wait_for_completion);
00082
00083 #if (TAO_HAS_MINIMUM_POA == 0)
00084
00085 PortableServer::ThreadPolicy_ptr create_thread_policy (PortableServer::ThreadPolicyValue value);
00086
00087 #endif
00088
00089 PortableServer::LifespanPolicy_ptr create_lifespan_policy (PortableServer::LifespanPolicyValue value);
00090
00091 PortableServer::IdUniquenessPolicy_ptr create_id_uniqueness_policy (PortableServer::IdUniquenessPolicyValue value);
00092
00093 PortableServer::IdAssignmentPolicy_ptr create_id_assignment_policy (PortableServer::IdAssignmentPolicyValue value);
00094
00095 #if (TAO_HAS_MINIMUM_POA == 0)
00096
00097 PortableServer::ImplicitActivationPolicy_ptr create_implicit_activation_policy (PortableServer::ImplicitActivationPolicyValue value);
00098
00099 PortableServer::ServantRetentionPolicy_ptr create_servant_retention_policy (PortableServer::ServantRetentionPolicyValue value);
00100
00101 PortableServer::RequestProcessingPolicy_ptr create_request_processing_policy (PortableServer::RequestProcessingPolicyValue value);
00102
00103 #endif
00104
00105 char * the_name (void);
00106
00107 PortableServer::POA_ptr the_parent (void);
00108
00109 PortableServer::POAList *the_children (void);
00110
00111 PortableServer::POAManager_ptr the_POAManager (void);
00112
00113 #if (TAO_HAS_MINIMUM_POA == 0)
00114
00115 PortableServer::AdapterActivator_ptr the_activator (void);
00116
00117 void the_activator (PortableServer::AdapterActivator_ptr adapter_activator);
00118
00119 PortableServer::ServantManager_ptr get_servant_manager (void);
00120
00121 void set_servant_manager (PortableServer::ServantManager_ptr imgr);
00122
00123 PortableServer::Servant get_servant (void);
00124
00125 void set_servant (PortableServer::Servant servant);
00126
00127 #endif
00128
00129 PortableServer::ObjectId *activate_object (PortableServer::Servant p_servant);
00130
00131 void activate_object_with_id (const PortableServer::ObjectId &id,
00132 PortableServer::Servant p_servant);
00133
00134 void deactivate_object (const PortableServer::ObjectId &oid);
00135
00136 CORBA::Object_ptr create_reference (const char *intf);
00137
00138 CORBA::Object_ptr create_reference_with_id (const PortableServer::ObjectId &oid,
00139 const char *intf);
00140
00141 PortableServer::ObjectId *servant_to_id (PortableServer::Servant p_servant);
00142
00143 CORBA::Object_ptr servant_to_reference (PortableServer::Servant p_servant);
00144
00145 PortableServer::Servant reference_to_servant (CORBA::Object_ptr reference);
00146
00147 PortableServer::ObjectId *reference_to_id (CORBA::Object_ptr reference);
00148
00149 PortableServer::Servant id_to_servant (const PortableServer::ObjectId &oid);
00150
00151 CORBA::Object_ptr id_to_reference (const PortableServer::ObjectId &oid);
00152
00153 CORBA::OctetSeq *id (void);
00154
00155
00156
00157 TAO_GOA (const String &name,
00158 PortableServer::POAManager_ptr poa_manager,
00159 const TAO_POA_Policy_Set &policies,
00160 TAO_Root_POA *parent,
00161 ACE_Lock &lock,
00162 TAO_SYNCH_MUTEX &thread_lock,
00163 TAO_ORB_Core &orb_core,
00164 TAO_Object_Adapter *object_adapter);
00165
00166 virtual ~TAO_GOA (void);
00167
00168
00169 static int Initializer (void);
00170
00171 protected:
00172
00173
00174 virtual TAO_Root_POA *new_POA (const String &name,
00175 PortableServer::POAManager_ptr poa_manager,
00176 const TAO_POA_Policy_Set &policies,
00177 TAO_Root_POA *parent,
00178 ACE_Lock &lock,
00179 TAO_SYNCH_MUTEX &thread_lock,
00180 TAO_ORB_Core &orb_core,
00181 TAO_Object_Adapter *object_adapter);
00182
00183 int find_group_component (const CORBA::Object_ptr the_ref,
00184 PortableGroup::TagGroupTaggedComponent &group);
00185
00186 int find_group_component_in_profile (
00187 const TAO_Profile* profile,
00188 PortableGroup::TagGroupTaggedComponent &group);
00189
00190 int create_group_acceptors (
00191 CORBA::Object_ptr the_ref,
00192 TAO_PortableGroup_Acceptor_Registry &acceptor_registry,
00193 TAO_ORB_Core &orb_core);
00194
00195
00196
00197 void associate_group_with_ref (
00198 CORBA::Object_ptr group_ref,
00199 CORBA::Object_ptr obj_ref);
00200 };
00201
00202 TAO_END_VERSIONED_NAMESPACE_DECL
00203
00204
00205
00206 #if defined(_MSC_VER)
00207 #pragma warning(pop)
00208 #endif
00209
00210 #include "ace/post.h"
00211
00212 #endif