Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction of some messages and comments.
[jaceP2P.git] / src / jaceP2P / JaceServer.java
index d7aaeea..8b973ef 100644 (file)
@@ -33,7 +33,7 @@ public class JaceServer extends UnicastRemoteObject implements JaceInterface {
                        JaceSuperNodeInterface snodeStub, int rank, int heartTime, int tag,
                        int nbdc, int nbsdc, int nbDaemonPerSpawner, int nbDaemonPerThread)
                        throws RemoteException {
-               System.out.println("beginning the transformation .........");
+               System.out.println("Beginning the transformation ...");
 //             @SuppressWarnings("unused")
 //             JaceSpawner spawner = new JaceSpawner(params, appliName, reg, nbTasks,
 //                             snodeStub, rank, heartTime, tag, nbdc, nbsdc,
@@ -59,7 +59,7 @@ public class JaceServer extends UnicastRemoteObject implements JaceInterface {
                // 1 - replace the old Register by the new one
                System.out.println(" \n\n             NEW REGISTER            \n\n");
                // if(Register.Instance().getVersion()<=newReg.getVersion()){
-               System.out.println("replacing Register !!!!!!$$$$$$$$******");
+               System.out.println("Replacing Register ...");
                Register.Instance().replaceBy(newReg);
                Register.Instance().viewAll();
                // }
@@ -107,7 +107,7 @@ public class JaceServer extends UnicastRemoteObject implements JaceInterface {
                        myTaskId.setHostStub(node.getStub());
 
                } catch (Exception e) {
-                       System.out.println("error in updateregister :" + e);
+                       System.err.println("Error in updateregister :" + e);
                        // e.printStackTrace();
                }
        }
@@ -128,7 +128,7 @@ public class JaceServer extends UnicastRemoteObject implements JaceInterface {
        }
 
        public void suicide(String debugMsg) throws RemoteException {
-               System.out.println("suiciiiiiiiiiiiide : "/* + debugMsg */);
+//             System.out.println("suiciiiiiiiiiiiide : "/* + debugMsg */);
                new ReinitDaemon().start();
        }
 
@@ -260,7 +260,7 @@ public class JaceServer extends UnicastRemoteObject implements JaceInterface {
                                ScanThread.Instance().notify();
                        }
                } catch (Exception e) {
-                       System.out.println("error in setScanning: " + e);
+                       System.err.println("Error in setScanning: " + e);
                }
                // System.out.println("before notify!!!!!!!!!");
                // try{ScanThread.Instance().notify();}