Map<String, ApplicationDescription> applicationDescriptors = airavataAPI.getApplicationManager().getApplicationDescriptors(serviceName);
for (String hostDescName : applicationDescriptors.keySet()) {
registeredHosts.add(airavataAPI.getApplicationManager().getHostDescription(hostDescName));
}
Class<? extends HostScheduler> aClass = Class.forName(ServerSettings.getHostScheduler()).asSubclass(HostScheduler.class);
HostScheduler hostScheduler = aClass.newInstance();
registeredHost = hostScheduler.schedule(registeredHosts);
} else {
// if user specify a host, no matter what we pick that host for all the nodes, todo: allow users to specify node specific host
registeredHost = airavataAPI.getApplicationManager().getHostDescription(hostName);
}
ApplicationDescription applicationDescription =