Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New development version.
[jaceP2P.git] / src / jaceP2P / ScanThread.java
index f7aa36c..f11667c 100644 (file)
@@ -58,7 +58,7 @@ public class ScanThread extends Thread {
                }
        }
 
-       @SuppressWarnings("static-access")
+//     @SuppressWarnings("static-access")
        public void testNeighbor() {
                Node host;
                //Node tmpNode;
@@ -110,7 +110,7 @@ public class ScanThread extends Thread {
                                                } else {
                                                        dead = true;
                                                        //changed = true;
-                                                       host.getStub().suicide("Not responding");
+                                                       host.getStub().suicide2("Not responding");
                                                        System.out.println("\n\nNot responding node "
                                                                        + host.getName() + " (" + host.getIP()
                                                                        + ")      size : "
@@ -135,7 +135,7 @@ public class ScanThread extends Thread {
                                                try {
                                                        spawnerStub.signalDeadNode(jaceStub, neighborRank);
 
-                                                       this.sleep(10 * beat);
+                                                       Thread.sleep(10 * beat);
 
                                                } catch (RemoteException e1) {
                                                        System.err.println("Couldn't reach the spawner: "