String crawlHost = this.crawlProps.getCrawlHost();
if (crawlers != null && crawlers.size() > 0) {
Collections.sort(crawlers, new Comparator() {
public int compare(Object o1, Object o2) {
CrawlInfo c1 = (CrawlInfo) o1;
CrawlInfo c2 = (CrawlInfo) o2;
return c1.getCrawlerName().compareTo(c2.getCrawlerName());
}
});
String biggestString = getBiggestString(crawlers);
for (Iterator i = crawlers.iterator(); i.hasNext();) {
CrawlInfo info = (CrawlInfo) i.next();
String crawlerUrlStr = "http://" + crawlHost + ":"
+ info.getCrawlerPort();
System.out.println(getStrPadding(info.getCrawlerName(), biggestString)
+ info.getCrawlerName() + ": [" + crawlerUrlStr + "]: "
+ printUp(getCrawlerUp(crawlerUrlStr)));
}
}
}