private final Map<String, SshManagedHost> hosts = new HashMap<String, SshManagedHost>();
private final GridHostMap hostMap;
private final SshSessionFactory sshFactory;
public SshManagedCluster(String[] hosts, SshSessionFactory sshFactory) throws IOException {
this.hostMap = new GridHostMap(hosts);
this.sshFactory = sshFactory;
for(String host: hosts) {
try {
this.hosts.put(host, new SshManagedHost(host));