Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : update tesh
[simgrid.git] / examples / java / kademlia / Common.java
1 /* Copyright (c) 2012. 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 package kademlia;
7 /**
8  * Common constants used all over the simulation
9  */
10 public class Common {
11         public final static int COMM_SIZE = 1;
12         public final static int COMP_SIZE = 0;
13         
14         public final static int RANDOM_LOOKUP_INTERVAL = 100;
15         
16         public final static int alpha = 3;
17         /**
18          * Size of the nodes identifier
19          */
20         public final static int IDENTIFIER_SIZE = 32;
21         /**
22          * Maximum size of the buckets
23          */
24         public final static int BUCKET_SIZE = 20;
25         /**
26          * Maximum number of trial for the "JOIN" request
27          */
28         public final static int MAX_JOIN_TRIALS = 4;
29         /**
30          * Timeout for a "FIND_NODE" request to a node
31          */
32         public final static int FIND_NODE_TIMEOUT = 10;
33         /**
34          * Global timeout for a FIND_NODE.
35          */
36         public final static int FIND_NODE_GLOBAL_TIMEOUT = 50;
37         /**
38          * Timeout for a "PING" request
39          */
40         public final static int PING_TIMEOUT = 35;
41         
42         public final static int MAX_STEPS = 10;
43
44         public final static int JOIN_BUCKETS_QUERIES = 1;
45 }