// instanciate the appli (the .class of the user) and load it
tsk = ((Task) c.newInstance());
} catch (Exception e) {
- System.out.println("unable to instanciate the class :" + e);
+ System.err.println("Unable to instanciate the class :" + e);
}
try {
if (b != null) {
stream.close();
} catch (Exception e) {
- System.out
+ System.err
.println("JaceP2P_Error ds TaskLauncher.loadOrReloadTask() "
+ "when converting the stream in Task : "
+ e);
tsk.setParam(Register.Instance().getParams()); // assign
// jaceArgs
- System.out.println("PAS de backup");
+ System.out.println("No backup");
}
// insert Task in taskObject, the attribute of the JaceSession class
JaceSession.Instance().addTaskObject(tsk);
- System.out.println("after add task");
+// System.out.println("After add task");
if (b != null) {
int it = b.getIteration();
tsk.nb_not_recv = tskConvg.nb_not_recv;
tsk.electedNode = tskConvg.electedNode;
tsk.respSent = tskConvg.respSent;
- System.out.println("avant le copiage des vecteurs");
+// System.out.println("avant la copie des vecteurs");
tsk.neighbors = (Vector) (tskConvg.neighbors)
.clone();
tsk.reduceAll = (Vector) (tskConvg.reduceAll)
.clone();
tsk.resp = (Vector) (tskConvg.resp).clone();
- System.out.println("apres le copiage des vecteurs");
+// System.out.println("apres la copie des vecteurs");
tsk.underTh = tskConvg.underTh;
tsk.verifNum = tskConvg.verifNum;
tsk.sendId = tskConvg.sendId;
}
}
- System.out.println("ReinitTask!!!!");
+ System.out.println("Reinit Task");
tsk.jaceP2P_ReinitTask();
tsk.postReloading = true;
tsk.reloading = false;
} else {
// initialize the task with the appli specific data (Method
// jaceP2P_InitTask() overloaded in the appli code by the user)
- System.out.println("before Init task");
+// System.out.println("Before Init task");
tsk.jaceP2P_InitTask();
- System.out.println("after Init task");
+// System.out.println("After Init task");
}
if (LocalHost.Instance().getStartedThreads() == false) {
Thread.currentThread().yield();
} catch (Exception e) {
- System.out.println("PB in TaskLauncher.loadOrReloadTask() : " + e);
+ System.err.println("Problem in TaskLauncher.loadOrReloadTask() : " + e);
e.printStackTrace(System.out);
}
}