Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revalidate the tesh file
[simgrid.git] / examples / java / app / bittorrent / Common.java
index 3f2f3ad..0eb1eaa 100644 (file)
@@ -7,7 +7,7 @@
 package app.bittorrent;
 
 /* Common constants for use in the simulation */
-public class Common {
+class Common {
   public static final String TRACKER_MAILBOX = "tracker_mailbox";
   public static final int FILE_SIZE = 5120;
   public static final int FILE_PIECE_SIZE = 512;
@@ -25,4 +25,7 @@ public class Common {
   public static final int MAX_UNCHOKED_PEERS = 4;  /* Number of peers that can be unchocked at a given time */
   public static final int UPDATE_CHOKED_INTERVAL = 30;  /* Interval between each update of the choked peers */
   public static final int MAX_PIECES = 1;  /* Number of pieces the peer asks for simultaneously */
+  private Common() {
+    throw new IllegalAccessError("Utility class");
+  }
 }