2 * Copyright (c) 2006-2013. The SimGrid Team.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package.
10 * Common constants for use in the simulation
14 public static String TRACKER_MAILBOX = "tracker_mailbox";
16 public static int FILE_SIZE = 5120;
17 public static int FILE_PIECE_SIZE = 512;
18 public static int FILE_PIECES = 10;
19 public static int PIECES_BLOCKS = 5;
21 public static int BLOCKS_REQUESTED = 2;
23 public static int PIECE_COMM_SIZE = 1;
25 * Information message size
27 public static int MESSAGE_SIZE = 1;
29 * Max number of pairs sent by the tracker to clients
31 public static int MAXIMUM_PEERS = 50;
33 * Interval of time where the peer should send a request to the tracker
35 public static int TRACKER_QUERY_INTERVAL = 1000;
37 * Communication size for a task to the tracker
39 public static double TRACKER_COMM_SIZE = 0.01;
41 * Timeout for the get peers data
43 public static int GET_PEERS_TIMEOUT = 10000;
45 * Timeout for "standard" messages.
47 public static int TIMEOUT_MESSAGE = 10;
49 * Timeout for tracker receive.
51 public static int TRACKER_RECEIVE_TIMEOUT = 10;
53 * Number of peers that can be unchocked at a given time
55 public static int MAX_UNCHOKED_PEERS = 4;
57 * Interval between each update of the choked peers
59 public static int UPDATE_CHOKED_INTERVAL = 30;
61 * Number of pieces the peer asks for simultaneously
63 public static int MAX_PIECES = 1;