fixed noide

This commit is contained in:
Michael Scholz 2013-02-11 12:17:05 +01:00
parent 54d7791990
commit 308a6ecfb5

View File

@ -390,13 +390,17 @@ public class Node {
return routingTable.getEntries();
}
public void storePair(Identifier key, NodeIdentifier id) {
values.put(key, id);
public void storePair(Identifier key, Identifier nodeid) {
values.put(key, nodeid);
}
public void store(Identifier key) {
storePair(key,this.nodeID);
Set<NodeIdentifier> nodes = routingTable.getClosestNodesTo(key);
for (NodeIdentifier node : nodes) {
sendStore(node, key);
}
@ -405,6 +409,7 @@ public class Node {
public void findValue(Identifier key) {
Set<NodeIdentifier> nodes = routingTable.getClosestNodesTo(key);
for (NodeIdentifier node : nodes) {
sendFindValue(node, key);
}