1 /* Copyright (c) 2006-2014. The SimGrid Team.
2 * All rights reserved. */
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. */
9 * Common constants for use in the simulation
13 public static String TRACKER_MAILBOX = "tracker_mailbox";
15 public static int FILE_SIZE = 5120;
16 public static int FILE_PIECE_SIZE = 512;
17 public static int FILE_PIECES = 10;
18 public static int PIECES_BLOCKS = 5;
20 public static int BLOCKS_REQUESTED = 2;
22 public static int PIECE_COMM_SIZE = 1;
24 * Information message size
26 public static int MESSAGE_SIZE = 1;
28 * Max number of pairs sent by the tracker to clients
30 public static int MAXIMUM_PEERS = 50;
32 * Interval of time where the peer should send a request to the tracker
34 public static int TRACKER_QUERY_INTERVAL = 1000;
36 * Communication size for a task to the tracker
38 public static double TRACKER_COMM_SIZE = 0.01;
40 * Timeout for the get peers data
42 public static int GET_PEERS_TIMEOUT = 10000;
44 * Timeout for "standard" messages.
46 public static int TIMEOUT_MESSAGE = 10;
48 * Timeout for tracker receive.
50 public static int TRACKER_RECEIVE_TIMEOUT = 10;
52 * Number of peers that can be unchocked at a given time
54 public static int MAX_UNCHOKED_PEERS = 4;
56 * Interval between each update of the choked peers
58 public static int UPDATE_CHOKED_INTERVAL = 30;
60 * Number of pieces the peer asks for simultaneously
62 public static int MAX_PIECES = 1;