2 * Copyright 2006-2012. The SimGrid Team. 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.
8 import java.util.ArrayList;
10 import org.simgrid.msg.Task;
13 * Task exchanged between the tracker
16 public class TrackerTask extends Task {
25 public String hostname;
26 public String mailbox;
29 public int downloaded;
31 public double interval;
32 public ArrayList<Integer> peers;
34 public TrackerTask(String hostname, String mailbox, int peerId) {
35 this(hostname, mailbox, peerId, 0, 0, Common.FILE_SIZE);
37 public TrackerTask(String hostname, String mailbox, int peerId, int uploaded, int downloaded, int left) {
38 super("", 0, Common.TRACKER_COMM_SIZE);
39 this.type = Type.REQUEST;
40 this.hostname = hostname;
41 this.mailbox = mailbox;
43 this.uploaded = uploaded;
44 this.downloaded = downloaded;
46 this.peers = new ArrayList<Integer>();