Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
public -> private+get
[simgrid.git] / examples / java / dht / chord / ChordTask.java
1 /* Copyright (c) 2006-2014. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 package dht.chord;
8
9 import dht.chord.Common;
10 import org.simgrid.msg.Task;
11
12 public class ChordTask extends Task {
13   private String issuerHostName;
14   private String answerTo;
15   public ChordTask() {
16     this(null,null);
17   }
18
19   public String getIssuerHostName(){
20     return this.issuerHostName;
21   }
22
23   public String getAnswerTo(){
24     return this.answerTo;
25   }
26
27   public ChordTask(String issuerHostName, String answerTo) {
28     super(null, Common.COMP_SIZE, Common.COMM_SIZE);
29     this.issuerHostName = issuerHostName;
30     this.answerTo = answerTo;
31   }
32 }