X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ce2a02a088fe07b61de72c882d6e6a1f620d573b..b8df87e176f27b25534f27d7e240defa32ca35bc:/examples/java/dht/chord/NotifyTask.java diff --git a/examples/java/dht/chord/NotifyTask.java b/examples/java/dht/chord/NotifyTask.java index daf4129090..dee7290fca 100644 --- a/examples/java/dht/chord/NotifyTask.java +++ b/examples/java/dht/chord/NotifyTask.java @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2014. The SimGrid Team. +/* Copyright (c) 2006-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -7,9 +7,14 @@ package dht.chord; public class NotifyTask extends ChordTask { - public int requestId; + private int requestId; + public NotifyTask(String issuerHostname, String answerTo, int requestId) { super(issuerHostname, answerTo); this.requestId = requestId; } + + public int getRequestId(){ + return this.requestId; + } }