for (Iterator i = this.crawlProps.getCrawlers().iterator(); i.hasNext();) {
CrawlInfo info = (CrawlInfo) i.next();
String crawlUrlStr = "http://" + this.crawlProps.getCrawlHost() + ":"
+ info.getCrawlerPort();
try {
CrawlDaemonController controller = new CrawlDaemonController(
crawlUrlStr);
CrawlerHealth health = new CrawlerHealth();
health.setCrawlerName(info.getCrawlerName());
health.setNumCrawls(controller.getNumCrawls());
health
.setAvgCrawlTime((double) (controller.getAverageCrawlTime() / 1000.0));
statuses.add(health);
} catch (Exception e) {
CrawlerHealth health = new CrawlerHealth();
health.setCrawlerName(info.getCrawlerName());