Set liveHosts = new HashSet();
try {
if (host == null) {
for (Iterator iter = Host.allHosts(); iter.hasNext(); ) {
Host nextHost = (Host) iter.next();
if (nextHost.ping())
liveHosts.add(nextHost);
}
} else {
Host nextHost = new Host(host);
if (nextHost.ping())