12 CORBA::TypeCode_var tc = tmp.type();
13 const char * p = tc->name ();
23 CORBA::ORB_ptr orb = (CORBA::ORB_ptr) arg;
98 cerr <<
"Return Proxy : Adding node : " << rank << endl;
100 cerr <<
"Adding node : " << rank << endl;
107 cerr <<
"Return Proxy : All the node are registered" << endl;
109 cerr <<
"All the node are registered" << endl;
123 catch (
const CORBA::Exception & e)
125 cerr <<
" Node : " << node << endl;
126 cerr <<
" InterfaceManager_impl::setNewNode : Exception : " << e << endl;
137 CORBA::Object_var object;
138 PaCO::InterfaceParallel_var interface;
142 for (i = 0; i<lgth; i++)
145 interface = PaCO::InterfaceParallel::_narrow(object);
146 interface->refReturnObject(
return_str.c_str());
171 CORBA::Object_var object;
172 PaCO::InterfaceParallel_var interface;
176 cerr <<
"Adding a new client !!!!" << endl;
178 for (i = 0; i<lgth; i++)
182 interface = PaCO::InterfaceParallel::_narrow(object);
183 interface->connect_return_object(client_id);
191 cerr <<
"Return Proxy : Deploy the parallel CORBA object" << endl;
193 cerr <<
"Deploy the parallel CORBA object" << endl;
196 CORBA::Object_var object;
197 PaCO::InterfaceParallel_var interface;
201 cerr <<
"Return Proxy : Deploying all the nodes" << endl;
203 cerr <<
"Deploying all the nodes" << endl;
205 for ( CORBA::ULong i = 0; i<
_nodes.length(); i++)
208 cerr <<
"Return Proxy : Deploying node : " << i << endl;
210 cerr <<
"Deploying node : " << i << endl;
213 interface = PaCO::InterfaceParallel::_narrow(object);
218 cerr <<
"Exception handling part..." << endl;
220 ref_nodes.length(
_nodes.length());
221 for (CORBA::ULong j = 0; j<
_nodes.length(); j++)
225 interface->setRef(ref_nodes);
226 cerr <<
"Exception handling part...done" << endl;
232 cerr <<
"Deploying " <<
_workNode <<
" nodes" << endl;
233 for ( CORBA::Long i = 0; i<
_workNode; i++)
235 cerr <<
"Deploying node : " << i << endl;
237 interface = PaCO::InterfaceParallel::_narrow(object);
244 cerr <<
"Finishing...\n";
246 cerr <<
"Finishing...done\n";
278 cerr <<
"Debut de deploy()"<< endl;
280 CORBA::Object_var object;
281 object =
_orb->string_to_object(_ior.c_str());
282 PaCO::InterfaceManager_var interface;
283 interface = PaCO::InterfaceManager::_narrow(object);
284 char * obj =
_orb->object_to_string(_this());
287 interface->setNewNode(obj, rank);
289 catch (
const CORBA::Exception & e)
291 cerr <<
"Argument : " << obj << endl;
292 cerr <<
"InterfaceParallel_impl::deploy : Exception : " << e << endl;
294 cerr <<
"Fin de deploy()"<< endl;
320 cerr <<
"Servant : " << myRank <<
" initialized" << endl;
332 return_object = (
char *) ref;
338 _ref_nodes.length(ref_nodes.length());
339 for (CORBA::ULong i = 0; i<ref_nodes.length(); i++)
340 _ref_nodes[i] = ref_nodes[i];
virtual PaCO::ConnectionInfos * getConnectionInfos()
virtual void setRef(const PaCO::InterfaceParallel::ref &ref_nodes)
virtual void setTopo(const PaCO::PacoTopology_t &topo)
PaCO::PacoTopology_t serveur_topo
void * paco_orb_run(void *arg)
CORBA::Short _totalNodeReceived
CORBA::Short getTotalNode()
PaCO::ConnectionInfos _informations_temp
virtual ~InterfaceParallel_impl()
virtual void setWorkNode(CORBA::Short totalNode)
virtual void updateContexts()=0
virtual void setTotalNode(CORBA::Short totalNode)
CORBA::Short getDeployRank()
CORBA::Short _current_uid
virtual char * getReturn()
PaCO::ConnectionInfos _informations
void init_InterfaceParallel(CORBA::Short myRank, CORBA::Short totalNode)
InterfaceManager_impl(CORBA::ORB_ptr current_orb)
virtual void return_ok(const CORBA::Short client_id)
PacoTopology_t serveur_topo
PaCO::PacoTopology_t PacoTopologySeq
paco_fabrique_manager * paco_getFabriqueManager()
static ostream & operator<<(ostream &os, const CORBA::Exception &e)
virtual void setConnectionInfos()
void deploy(CORBA::Short rank)
virtual void setNewNode(const char *node, const CORBA::Short rank)
virtual void setReturn(const char *ref)
virtual ~InterfaceManager_impl()
PaCO::ConnectionInfos::_nodes_seq _nodes
InterfaceParallel_impl(CORBA::ORB_ptr current_orb, char *ior)
void refReturnObject(const char *ref)
virtual PaCO::ConnectionInfos * getConnectionInfos()