Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
changed 2, added 5 new picture for more information added runtime to the list
borg-0300f875eda9b7d8
diff --git a/htroot/Network.html b/htroot/Network.htmlindex 4ad043da5..ee9336475 100644--- a/htroot/Network.html+++ b/htroot/Network.html@@ -67,7 +67,8 @@<a href="http://#[fullname]#.yacy/Wiki.html#[updatedWikiPage]#" class="small" title="Read and edit wiki on peer #[fullname]#">w</a> #[alert]#</td><td class="small"><a href="http://www.#[fullname]#.yacy" class="small">#[shortname]#</a></td>-<td class="small">#(info)##(direct)#<img border="0" src="/env/grafics/JuniorPassive.gif" title="Type: Junior | Contact: passive"></img>::<img border="0" src="/env/grafics/JuniorDirect.gif" title="Type: Junior | Contact: direct"></img>#(/direct)#::#(direct)#<img border="0" src="/env/grafics/SeniorPassive.gif" title="Type: Senior | Contact: passive"></img>::<img border="0" src="/env/grafics/SeniorDirect.gif" title="Type: Senior | Contact: direct"></img>#(/direct)#::<a href="#[url]#">#(direct)#<img border="0" src="/env/grafics/PrincipalPassive.gif" title="Type: Principal | Contact: passive | Seed download: possible"></img>::<img border="0" src="/env/grafics/PrincipalDirect.gif" title="Type: Principal | Contact: direct | Seed download: possible"></img>#(/direct)#</a>#(/info)##(acceptcrawl)#<img border="0" src="/env/grafics/CrawlNo.gif" title="Accept Crawl: no"></img>::<img border="0" src="/env/grafics/CrawlYes.gif" title="Accept Crawl: yes"></img>#(/acceptcrawl)##(dhtreceive)#<img border="0" src="/env/grafics/DHTReceiveNo.gif" title="DHT Receive: no"></img>::<img border="0" src="/env/grafics/DHTReceiveYes.gif" title="DHT Receive: yes"></img>#(/dhtreceive)#</td>+<td class="small">+#(type)##(direct)#<img border="0" src="/env/grafics/JuniorPassive.gif" title="Type: Junior | Contact: passive"></img>::<img border="0" src="/env/grafics/JuniorDirect.gif" title="Type: Junior | Contact: direct"></img>::<img border="0" src="/env/grafics/JuniorOffline.gif" title="Type: Junior | Contact: offline"></img>#(/direct)#::#(direct)#<img border="0" src="/env/grafics/SeniorPassive.gif" title="Type: Senior | Contact: passive"></img>::<img border="0" src="/env/grafics/SeniorDirect.gif" title="Type: Senior | Contact: direct"></img>::<img border="0" src="/env/grafics/SeniorOffline.gif" title="Type: Senior | Contact: offline"></img>#(/direct)#::<a href="#[url]#">#(direct)#<img border="0" src="/env/grafics/PrincipalPassive.gif" title="Type: Principal | Contact: passive | Seed download: possible"></img>::<img border="0" src="/env/grafics/PrincipalDirect.gif" title="Type: Principal | Contact: direct | Seed download: possible"></img>::<img border="0" src="/env/grafics/PrincipalOffline.gif" title="Type: Principal | Contact: offline | Seed download: ?"></img>#(/direct)#</a>#(/type)##(acceptcrawl)#<img border="0" src="/env/grafics/CrawlNo.gif" title="Accept Crawl: no"></img>::<img border="0" src="/env/grafics/CrawlYes.gif" title="Accept Crawl: yes"></img>::<img border="0" src="/env/grafics/CrawlYesOffline.gif" title="Accept Crawl: yes"></img>#(/acceptcrawl)##(dhtreceive)#<img border="0" src="/env/grafics/DHTReceiveNo.gif" title="DHT Receive: no"></img>::<img border="0" src="/env/grafics/DHTReceiveYes.gif" title="DHT Receive: yes"></img>::<img border="0" src="/env/grafics/DHTReceiveYesOffline.gif" title="DHT Receive: yes"></img>#(/dhtreceive)#</td><td class="small" align="right">#[version]#</td><td class="small" align="right">#[lastSeen]#</td><td class="small" align="right">#[utc]#</td>@@ -89,6 +90,7 @@#(/complete)#</tr>#{/list}#+<tr><td colspan="15" align="right"><p><font size="-3"><i>runtime: #[rt]# ms</i></font></p></td></tr></table></p>::@@ -204,5 +206,6 @@ To do this, press this button:</form>#(/table)##[footer]#+</body></html>\ No newline at end of filediff --git a/htroot/Network.java b/htroot/Network.javaindex 644365bcb..a1c249a31 100644--- a/htroot/Network.java+++ b/htroot/Network.java@@ -65,6 +65,8 @@ public class Network {private static final String STR_TABLE_LIST = "table_list_";public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch sb) {+ long start = System.currentTimeMillis();+// return variable that accumulates replacementsfinal serverObjects prop = new serverObjects();final boolean overview = (post == null) || (((String) post.get("page", "0")).equals("0"));@@ -309,24 +311,39 @@ public class Network {if (seed.isJunior()) {- prop.put(STR_TABLE_LIST + conCount + "_info", 0);+ prop.put(STR_TABLE_LIST + conCount + "_type", 0);} else if(seed.isSenior()){- prop.put(STR_TABLE_LIST + conCount + "_info", 1);+ prop.put(STR_TABLE_LIST + conCount + "_type", 1);} else if(seed.isPrincipal()) {- prop.put(STR_TABLE_LIST + conCount + "_info", 2);+ prop.put(STR_TABLE_LIST + conCount + "_type", 2);}- prop.put(STR_TABLE_LIST + conCount + "_info_url", seed.get("seedURL", "http://nowhere/"));+ prop.put(STR_TABLE_LIST + conCount + "_type_url", seed.get("seedURL", "http://nowhere/"));long lastseen = Math.abs((System.currentTimeMillis() - seed.getLastSeenTime()) / 1000 / 60);-// if (lastseen < 0) lastseen = 0;- if (page == 2 || lastseen > 1440) { // Passive Peers should be passive, also Peers without contact greater than an day- prop.put(STR_TABLE_LIST + conCount + "_info_direct", 0);- } else {- prop.put(STR_TABLE_LIST + conCount + "_info_direct", seed.getFlagDirectConnect() ? 1 : 0);+ if (page == 2 || lastseen > 1440) { // Passive Peers should be passive, also Peers without contact greater than an day+ // principal/senior/junior: red/red=offline+ prop.put(STR_TABLE_LIST + conCount + "_type_direct", 2);+ } else {+ // principal/senior: green/green=direct or yellow/yellow=passive+ // junior: red/green=direct or red/yellow=passive+ prop.put(STR_TABLE_LIST + conCount + "_type_direct", seed.getFlagDirectConnect() ? 1 : 0);+ }++ if (page == 1) {+ prop.put(STR_TABLE_LIST + conCount + "_acceptcrawl", seed.getFlagAcceptRemoteCrawl() ? 1 : 0); // green=on or red=off+ prop.put(STR_TABLE_LIST + conCount + "_dhtreceive", seed.getFlagAcceptRemoteIndex() ? 1 : 0); // green=on or red=off+ } else { // Passive, Potential Peers+ if (seed.getFlagAcceptRemoteCrawl()) {+ prop.put(STR_TABLE_LIST + conCount + "_acceptcrawl", 2); // red/green: offline, was on+ } else {+ prop.put(STR_TABLE_LIST + conCount + "_acceptcrawl", 0); // red/red; offline was off+ }+ if (seed.getFlagAcceptRemoteIndex()) {+ prop.put(STR_TABLE_LIST + conCount + "_dhtreceive", 2); // red/green: offline, was on+ } else {+ prop.put(STR_TABLE_LIST + conCount + "_dhtreceive", 0); // red/red; offline was off+ }}- prop.put(STR_TABLE_LIST + conCount + "_acceptcrawl", seed.getFlagAcceptRemoteCrawl() ? 1 : 0);- prop.put(STR_TABLE_LIST + conCount + "_dhtreceive", seed.getFlagAcceptRemoteIndex() ? 1 : 0);-prop.put(STR_TABLE_LIST + conCount + "_version", yacy.combinedVersionString2PrettyString(seed.get("Version", "0.1")));prop.put(STR_TABLE_LIST + conCount + "_lastSeen", lastseen);prop.put(STR_TABLE_LIST + conCount + "_utc", seed.get("UTC", "-"));@@ -359,6 +376,7 @@ public class Network {default: break;}}+ prop.put("table_rt", System.currentTimeMillis() - start);// return rewrite propertiesreturn prop;}diff --git a/htroot/env/grafics/CrawlYesOffline.gif b/htroot/env/grafics/CrawlYesOffline.gifnew file mode 100644index 000000000..05d41b434Binary files /dev/null and b/htroot/env/grafics/CrawlYesOffline.gif differdiff --git a/htroot/env/grafics/DHTReceiveYesOffline.gif b/htroot/env/grafics/DHTReceiveYesOffline.gifnew file mode 100644index 000000000..aa263078dBinary files /dev/null and b/htroot/env/grafics/DHTReceiveYesOffline.gif differdiff --git a/htroot/env/grafics/JuniorDirect.gif b/htroot/env/grafics/JuniorDirect.gifindex 04eac03d7..6c19f3db9 100644Binary files a/htroot/env/grafics/JuniorDirect.gif and b/htroot/env/grafics/JuniorDirect.gif differdiff --git a/htroot/env/grafics/JuniorOffline.gif b/htroot/env/grafics/JuniorOffline.gifnew file mode 100644index 000000000..afd577ed6Binary files /dev/null and b/htroot/env/grafics/JuniorOffline.gif differdiff --git a/htroot/env/grafics/JuniorPassive.gif b/htroot/env/grafics/JuniorPassive.gifindex c532ba1cc..c137d8d58 100644Binary files a/htroot/env/grafics/JuniorPassive.gif and b/htroot/env/grafics/JuniorPassive.gif differdiff --git a/htroot/env/grafics/PrincipalOffline.gif b/htroot/env/grafics/PrincipalOffline.gifnew file mode 100644index 000000000..e0995eb62Binary files /dev/null and b/htroot/env/grafics/PrincipalOffline.gif differdiff --git a/htroot/env/grafics/SeniorOffline.gif b/htroot/env/grafics/SeniorOffline.gifnew file mode 100644index 000000000..348a7f2d9Binary files /dev/null and b/htroot/env/grafics/SeniorOffline.gif differ