A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tidy the exceptions that can be raised by our Java code
[simgrid.git]
/
examples
/
java
/
dht
/
chord
/
ChordTask.java
diff --git
a/examples/java/dht/chord/ChordTask.java
b/examples/java/dht/chord/ChordTask.java
index
e43fc8b
..
04fde06
100644
(file)
--- 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. */
/* 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);
}
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;
}
public String getIssuerHostName(){
return this.issuerHostName;
}
@@
-23,10
+28,4
@@
public class ChordTask extends Task {
public String getAnswerTo(){
return this.answerTo;
}
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;
- }
}
}