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
Merge pull request #200 from Takishipp/clear_fct
[simgrid.git]
/
examples
/
java
/
dht
/
chord
/
Node.java
diff --git
a/examples/java/dht/chord/Node.java
b/examples/java/dht/chord/Node.java
index
1817ab3
..
f29ead5
100644
(file)
--- a/
examples/java/dht/chord/Node.java
+++ b/
examples/java/dht/chord/Node.java
@@
-58,8
+58,8
@@
public class Node extends Process {
create();
joinSuccess = true;
} else {
create();
joinSuccess = true;
} else {
- int knownId = Integer.
valueOf
(args[1]);
- deadline = Integer.
valueOf
(args[3]);
+ int knownId = Integer.
parseInt
(args[1]);
+ deadline = Integer.
parseInt
(args[3]);
Msg.debug("Hey! Let's join the system with the id " + id + ".");
joinSuccess = join(knownId);
Msg.debug("Hey! Let's join the system with the id " + id + ".");
joinSuccess = join(knownId);
@@
-202,7
+202,6
@@
public class Node extends Process {
}
catch (MsgException e) {
commReceive = null;
}
catch (MsgException e) {
commReceive = null;
- stop = true;
}
}
catch (MsgException e) {
}
}
catch (MsgException e) {
@@
-330,9
+329,9
@@
public class Node extends Process {
// Performs a find successor request to a random id.
private void randomLookup() {
// Performs a find successor request to a random id.
private void randomLookup() {
- int
id
= 1337;
- //Msg.info("Making a lookup request for id " +
id
);
- findSuccessor(
id
);
+ int
dest
= 1337;
+ //Msg.info("Making a lookup request for id " +
dest
);
+ findSuccessor(
dest
);
}
/**
}
/**