Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New development version.
[jaceP2P.git] / src / jaceP2P / JaceSuperNode.java
index 09b25b3..5392cf9 100644 (file)
@@ -7,7 +7,7 @@ public class JaceSuperNode {
        final int NB_HEART_DECONNECT = 3;
        // attribute
        private int heartTime; // frequency of heartBeat
-       private int port = 1098; // par la suite, donner par fichier de conf
+       private int port = 1099; // par la suite, donner par fichier de conf
        private int timeBeforeKill; // wait for 3 non response of heartBeat to kill
                                                                // the Daemon
        String protocol;
@@ -29,6 +29,11 @@ public class JaceSuperNode {
                // create his list of SuperNode
                // containing the IPs and ports
                // but not already the stubs
+               if (System.getSecurityManager() == null) {
+            System.setSecurityManager(new SecurityManager());
+        }
+
+               
                SuperNodeListe.Instance().staticInitialization();
 
                HeartBeatSNode.Instance().setHeartTime(heartTime);