Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move MSG and SimDag examples out of the sight of users
[simgrid.git] / examples / deprecated / java / dht / chord / FindSuccessorAnswerTask.java
diff --git a/examples/deprecated/java/dht/chord/FindSuccessorAnswerTask.java b/examples/deprecated/java/dht/chord/FindSuccessorAnswerTask.java
new file mode 100644 (file)
index 0000000..a264576
--- /dev/null
@@ -0,0 +1,20 @@
+/* Copyright (c) 2006-2019. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+package dht.chord;
+
+public class FindSuccessorAnswerTask extends ChordTask {
+  private int answerId;
+
+  public FindSuccessorAnswerTask(String issuerHostname, String answerTo, int answerId) {
+    super(issuerHostname,answerTo);
+    this.answerId = answerId;
+  }
+
+  public int getAnswerId(){
+    return this.answerId;
+  }
+}