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 / NotifyTask.java
diff --git a/examples/deprecated/java/dht/chord/NotifyTask.java b/examples/deprecated/java/dht/chord/NotifyTask.java
new file mode 100644 (file)
index 0000000..dee7290
--- /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 NotifyTask extends ChordTask {
+  private int requestId;
+
+  public NotifyTask(String issuerHostname, String answerTo, int requestId) {
+    super(issuerHostname, answerTo);
+    this.requestId = requestId;
+  }
+
+  public int getRequestId(){
+    return this.requestId;
+  }
+}