Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move MSG and SimDag examples out of the sight of users
[simgrid.git] / examples / deprecated / java / dht / kademlia / Common.java
1 /* Copyright (c) 2012-2019. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 package dht.kademlia;
8
9 public class Common {
10   /* Common constants used all over the simulation */
11   public static final int COMM_SIZE = 1;
12   public static final int COMP_SIZE = 0;
13
14   public static final int RANDOM_LOOKUP_INTERVAL = 100;
15
16   public static final int ALPHA = 3;
17
18   public static final int IDENTIFIER_SIZE = 32;
19   /* Maximum size of the buckets */
20   public static final int BUCKET_SIZE = 20;
21   /* Maximum number of trials for the "JOIN" request */
22   public static final int MAX_JOIN_TRIALS = 4;
23   /* Timeout for a "FIND_NODE" request to a node */
24   public static final int FIND_NODE_TIMEOUT = 10;
25   /* Global timeout for a FIND_NODE request */
26   public static final int FIND_NODE_GLOBAL_TIMEOUT = 50;
27   /* Timeout for a "PING" request */
28   public static final int PING_TIMEOUT = 35;
29
30   public static final int MAX_STEPS = 10;
31   public static final int JOIN_BUCKETS_QUERIES = 1;
32   private Common() {
33     throw new IllegalAccessError("Utility class");
34   }
35 }