Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright headers.
[simgrid.git] / examples / java / dht / chord / ChordTask.java
1 /* Copyright (c) 2006-2018. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 package dht.chord;
7
8 import dht.chord.Common;
9 import org.simgrid.msg.Task;
10
11 public class ChordTask extends Task {
12   private String issuerHostName;
13   private String answerTo;
14   public ChordTask() {
15     this(null,null);
16   }
17
18   public ChordTask(String issuerHostName, String answerTo) {
19           super(null, Common.COMP_SIZE, Common.COMM_SIZE);
20           this.issuerHostName = issuerHostName;
21           this.answerTo = answerTo;
22   }
23
24   public String getIssuerHostName(){
25     return this.issuerHostName;
26   }
27
28   public String getAnswerTo(){
29     return this.answerTo;
30   }
31 }