Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction of some messages and comments.
[jaceP2P.git] / src / jaceP2P / TaskLauncher.java
index 19d150e..70eb239 100644 (file)
@@ -30,7 +30,7 @@ public class TaskLauncher {
                        // 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) {
@@ -48,7 +48,7 @@ public class TaskLauncher {
 
                                        stream.close();
                                } catch (Exception e) {
-                                       System.out
+                                       System.err
                                                        .println("JaceP2P_Error ds TaskLauncher.loadOrReloadTask() "
                                                                        + "when converting the stream in Task : "
                                                                        + e);
@@ -61,12 +61,12 @@ public class TaskLauncher {
                                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();
@@ -88,7 +88,7 @@ public class TaskLauncher {
                                                        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();
 
@@ -98,7 +98,7 @@ public class TaskLauncher {
                                                                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;
@@ -115,17 +115,17 @@ public class TaskLauncher {
                                        }
                                }
 
-                               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) {
@@ -158,7 +158,7 @@ public class TaskLauncher {
                        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);
                }
        }