final String[] metadata_fileNames = new String[len];
final String[] deploymentRequest_fileNames = new String[len];
for (int i = 0; i < len; i++) {
final ClusterMember member = this.clusterMembers[i];
if (member == null) {
throw new IllegalStateException(
"valid clusterMembers must be present here");
}
final String imageName = member.getImageName();
final String imageURL;
try {
imageURL = this.repoUtil.getDerivedImageURL(imageName);
} catch (Exception e) {
throw new ExecutionProblem("Problem with image name '" +
imageName + "': " + e.getMessage(), e);
}
final URI imageURI;
try {
imageURI = new URI(imageURL);
} catch (URI.MalformedURIException e) {
throw new ExecutionProblem(e.getMessage(), e);
}
// runName (3rd method paramater, being set to null) will be set
// in startWorkspaceCluster once rundir is known
metadatas[i] =
MetadataXMLUtil.constructMetadata(imageURI,
this.args.getMetadata_mountAs(),
null,
member.getAssociations(),
member.getIfaceNames(),
this.args.getMetadata_cpuType(),
this.args.getMetadata_vmmVersion(),
this.args.getMetadata_vmmType(),
this.kernelURI);
deploymentRequests[i] =
DeploymentXMLUtil.constructDeployment(this.args.getDurationMinutes(),
this.args.getMemory(),
this.args.getCores(),
this.newUnpropTargetURL,
member.getQuantity());
metadata_fileNames[i] =
HistoryUtil.getMemberName(i+1) + "-" +
this.args.getMetadata_fileName();
deploymentRequest_fileNames[i] =
HistoryUtil.getMemberName(i+1) + "-" +
this.args.getDeploymentRequest_fileName();
}
ClusterUtil.printClusterInfo(this.clusterMembers, this.print);
final String[] printNames = new String[this.clusterMembers.length];
final Cloudcluster_Type[] clustersForUserData =
new Cloudcluster_Type[this.clusterMembers.length];
for (int i = 0; i < this.clusterMembers.length; i++) {
final int memberIndex = i;
final ClusterMember member = this.clusterMembers[memberIndex];
printNames[i] = member.getPrintName(); // may be null
// will be null if not involved in contextualization
clustersForUserData[memberIndex] = member.getClusterForUserData();
printNames[i] = member.getPrintName(); // may be null
}
final KnownHostsTask[] knownHostTasks;
if (this.args.getSsh_hostsfile() != null) {
knownHostTasks =