Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

interaction: add special table interaction

cominchdf47f3123567
diff --git a/source/net/yacy/interaction/Interaction.java b/source/net/yacy/interaction/Interaction.java
index 9e247f94d..1c81a243c 100644
--- a/source/net/yacy/interaction/Interaction.java
+++ b/source/net/yacy/interaction/Interaction.java
@@ -390,7 +390,7 @@ public static String Contribution(String url, String value, String username, Str
}
-public static String GetTableentry(String url, String type, String username, String peer) {
+public static String GetTableentry(String url, String type, String username, String peer) {
final Switchboard sb = Switchboard.getSwitchboard();
@@ -418,7 +418,7 @@ public static String GetTableentry(String url, String type, String username, Str
}
return "";
-
+
}
@@ -430,7 +430,8 @@ public static String Tableentry(String url, String type, String comment, String
peer = sb.peers.myName();
}
- Boolean processlocal = false;
+ Boolean processlocal = false;
+
Log.logInfo ("TABLE", "PUT "+from+" / "+url+" - "+type+" - "+comment);
if (!sb.getConfig("interaction.contribution.accumulationpeer", "").equals("")) {
@@ -472,8 +473,8 @@ public static String Tableentry(String url, String type, String comment, String
map.put("url", url.getBytes());
map.put("username", from.getBytes());
- map.put("peer", peer.getBytes());
- map.put("status", "new".getBytes());
+ map.put("peer", peer.getBytes());
+ map.put("status", "new".getBytes());
map.put("type", type.getBytes());
map.put(type, comment.getBytes());
map.put("timestamp_creation", date.getBytes());