3 * Common constants for use in the simulation
6 public static String TRACKER_MAILBOX = "tracker_mailbox";
8 public static int FILE_SIZE = 5120;
9 public static int FILE_PIECE_SIZE = 512;
10 public static int FILE_PIECES = 10;
11 public static int PIECES_BLOCKS = 5;
13 public static int BLOCKS_REQUESTED = 2;
15 public static int PIECE_COMM_SIZE = 1;
17 * Information message size
19 public static int MESSAGE_SIZE = 1;
21 * Max number of pairs sent by the tracker to clients
23 public static int MAXIMUM_PEERS = 50;
25 * Interval of time where the peer should send a request to the tracker
27 public static int TRACKER_QUERY_INTERVAL = 1000;
29 * Communication size for a task to the tracker
31 public static double TRACKER_COMM_SIZE = 0.01;
33 * Timeout for the get peers data
35 public static int GET_PEERS_TIMEOUT = 10000;
37 * Timeout for "standard" messages.
39 public static int TIMEOUT_MESSAGE = 10;
41 * Timeout for tracker receive.
43 public static int TRACKER_RECEIVE_TIMEOUT = 10;
45 * Number of peers that can be unchocked at a given time
47 public static int MAX_UNCHOKED_PEERS = 4;
49 * Interval between each update of the choked peers
51 public static int UPDATE_CHOKED_INTERVAL = 50;
53 * Number of pieces the peer asks for simultaneously
55 public static int MAX_PIECES = 1;