GSISSHJobSubmission jobSubmission) throws InvalidRequestException,
AiravataClientException, AiravataSystemException, TException {
try {
HostDescription hostDescriptor = getRegistry().getHostDescriptor(computeResourceId);
hostDescriptor.getType().changeType(GsisshHostType.type);
GsisshHostType s = (GsisshHostType)hostDescriptor.getType();
s.setInstalledPath(jobSubmission.getInstalledPath());
ExportProperties exports = s.addNewExports();
if (jobSubmission.getExportsSize()>0) {
for (String export : jobSubmission.getExports()) {
exports.addNewName().setValue(export);
}
}
s.setExports(exports);
s.setJobManager(jobSubmission.getResourceJobManager().toString());
s.setMonitorMode(jobSubmission.getMonitorMode());
s.setPort(22);
if (jobSubmission.getPostJobCommandsSize()>0) {
s.setPostJobCommandsArray(jobSubmission.getPostJobCommands()
.toArray(new String[] {}));
}
if (jobSubmission.getPreJobCommandsSize()>0) {
s.setPreJobCommandsArray(jobSubmission.getPreJobCommands()
.toArray(new String[] {}));
}
getRegistry().updateHostDescriptor(hostDescriptor);
return computeResourceId;
} catch (Exception e) {