Skip to content

Commit

Permalink
*) re-enable commands on status page
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3612 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Apr 27, 2007
1 parent e0d6d5b commit d86a823
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion htroot/Status.java
Expand Up @@ -79,7 +79,31 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
prop.put("LOCATION","");
}
return prop;
}
} else if (post != null) {
if (post.containsKey("pauseCrawlJob")) {
String jobType = (String) post.get("jobType");
if (jobType.equals("localCrawl"))
((plasmaSwitchboard)env).pauseCrawlJob(plasmaSwitchboard.CRAWLJOB_LOCAL_CRAWL);
else if (jobType.equals("remoteTriggeredCrawl"))
((plasmaSwitchboard)env).pauseCrawlJob(plasmaSwitchboard.CRAWLJOB_REMOTE_TRIGGERED_CRAWL);
else if (jobType.equals("globalCrawlTrigger"))
((plasmaSwitchboard)env).pauseCrawlJob(plasmaSwitchboard.CRAWLJOB_GLOBAL_CRAWL_TRIGGER);
} else if (post.containsKey("continueCrawlJob")) {
String jobType = (String) post.get("jobType");
if (jobType.equals("localCrawl"))
((plasmaSwitchboard)env).continueCrawlJob(plasmaSwitchboard.CRAWLJOB_LOCAL_CRAWL);
else if (jobType.equals("remoteTriggeredCrawl"))
((plasmaSwitchboard)env).continueCrawlJob(plasmaSwitchboard.CRAWLJOB_REMOTE_TRIGGERED_CRAWL);
else if (jobType.equals("globalCrawlTrigger"))
((plasmaSwitchboard)env).continueCrawlJob(plasmaSwitchboard.CRAWLJOB_GLOBAL_CRAWL_TRIGGER);
} else if (post.containsKey("ResetTraffic")) {
httpdByteCountInputStream.resetCount();
httpdByteCountOutputStream.resetCount();
//enables or disables the browser popup on Yacy-start
}
prop.put("LOCATION","");
return prop;
}

/*
versionProbe=http://www.anomic.de/AnomicHTTPProxy/release.txt
Expand Down

0 comments on commit d86a823

Please sign in to comment.