X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/871107618b8c0e08361b84990c5c4a35ae4188e6..19dd38aef18645f2a1bf079a043351ad95db7640:/examples/java/dht/chord/ChordTask.java diff --git a/examples/java/dht/chord/ChordTask.java b/examples/java/dht/chord/ChordTask.java index e43fc8b0bc..04fde06df7 100644 --- a/examples/java/dht/chord/ChordTask.java +++ b/examples/java/dht/chord/ChordTask.java @@ -1,5 +1,4 @@ -/* Copyright (c) 2006-2014. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2006-2017. 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. */ @@ -16,6 +15,12 @@ public class ChordTask extends Task { this(null,null); } + public ChordTask(String issuerHostName, String answerTo) { + super(null, Common.COMP_SIZE, Common.COMM_SIZE); + this.issuerHostName = issuerHostName; + this.answerTo = answerTo; + } + public String getIssuerHostName(){ return this.issuerHostName; } @@ -23,10 +28,4 @@ public class ChordTask extends Task { public String getAnswerTo(){ return this.answerTo; } - - public ChordTask(String issuerHostName, String answerTo) { - super(null, Common.COMP_SIZE, Common.COMM_SIZE); - this.issuerHostName = issuerHostName; - this.answerTo = answerTo; - } }