Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction of some messages and comments.
[jaceP2P.git] / src / jaceP2P / ScanThreadSuperNode.java
index 373d1bb..1f3dad6 100644 (file)
@@ -22,7 +22,7 @@ public class ScanThreadSuperNode extends Thread {
 
        public static ScanThreadSuperNode Instance() {
                if (Instance == null) {
-                       System.out.println("creating new ScanThreadSuperNode ");
+                       System.out.println("Creating new ScanThreadSuperNode ");
                        Instance = new ScanThreadSuperNode();
                }
                return Instance;
@@ -47,7 +47,7 @@ public class ScanThreadSuperNode extends Thread {
        // }
        @SuppressWarnings("static-access")
        public void run() {
-               System.out.println("start ScanThread for SuperNode.......");
+               System.out.println("Start ScanThread for SuperNode.......");
                while (true) {
                        // System.out.println("ScanThread alive.......");
                        /*
@@ -90,7 +90,7 @@ public class ScanThreadSuperNode extends Thread {
                                        index = SuperNodeListe.Instance().getListe().size() - 1;
                                SuperNodeData data;
                                synchronized (SuperNodeListe.Instance()) {
-                                       System.out.println("removing "
+                                       System.out.println("Removing "
                                                        + ((SuperNodeData) SuperNodeListe.Instance()
                                                                        .getListe().elementAt(index)).getIP());
                                        data = (SuperNodeData) SuperNodeListe.Instance().getListe()
@@ -110,8 +110,8 @@ public class ScanThreadSuperNode extends Thread {
                                                                        .getListe().elementAt(i)).getStub()
                                                                        .removeSuperNode(data);
                                        } catch (Exception e2) {
-                                               System.out
-                                                               .println("error diffusing the message concerning a dead superNode: "
+                                               System.err
+                                                               .println("Error diffusing the message concerning a dead superNode: "
                                                                                + e2);
                                        }
                                if (token == true) {
@@ -132,7 +132,7 @@ public class ScanThreadSuperNode extends Thread {
 
                        }
                } catch (Exception e) {
-                       System.out.println("error in testNeighbor: " + e);
+                       System.err.println("Error in testNeighbor: " + e);
                }
        }