added another decoration flag to switch off network graphics in crawler

monitor and index browser: decoration.grafics.linkstructure
Please set this to false to remove the graphics from the interface.
This commit is contained in:
Michael Peter Christen 2014-10-08 17:12:35 +02:00
parent 764e4ed673
commit 8c1a89cb34
4 changed files with 6 additions and 2 deletions

View File

@ -1260,3 +1260,5 @@ crawler.userAgent.clienttimeout = 10000
# interface decorations
decoration.audio = false
decoration.grafics.linkstructure = true

View File

@ -662,7 +662,8 @@ public class Crawler_p {
prop.put("crawlProfilesShow", count == 0 ? 0 : 1);
prop.put("crawlProfilesShow_linkstructure", 0);
if (count > 0) {
if (count > 0 && sb.getConfigBool(SwitchboardConstants.DECORATION_GRAFICS_LINKSTRUCTURE, true)) {
// collect the host names for 'wide' crawls which can be visualized
boolean showLinkstructure = hosts.length() > 0 && !hosts.contains("file:");
if (showLinkstructure) {

View File

@ -514,7 +514,7 @@ public class HostBrowser {
prop.put("files_subpathdetectedsize", filecounter - storedDocs.size());
prop.put("files", 1);
uri = new DigestURL(path);
prop.put("files_linkgraph", uri.getPath().length() <= 1 && hostsize > 0);
prop.put("files_linkgraph", uri.getPath().length() <= 1 && hostsize > 0 && sb.getConfigBool(SwitchboardConstants.DECORATION_GRAFICS_LINKSTRUCTURE, true));
prop.put("files_linkgraph_host", uri.getHost());
// generate inbound-links table

View File

@ -559,5 +559,6 @@ public final class SwitchboardConstants {
* decorations
*/
public static final String DECORATION_AUDIO = "decoration.audio";
public static final String DECORATION_GRAFICS_LINKSTRUCTURE = "decoration.grafics.linkstructure";
}