}
private int nativeSubmission(JobParams jp)
throws Exception
{
SGEJob jcod = new SGEJob(jp.submissionName, null, cwd);
if(jp.args != null && jp.args.length > 0) {
for(int i = 0; i < jp.args.length; i ++)
jcod.addArg(jp.args[i]);
}
jcod.addStdoutPath(new HostPath(jp.output.getFile()));
jcod.addStderrPath(new HostPath(jp.error.getFile()));
if(jp.jobInfo.queueName.equals(SGEQueue.QMASTER_NAME)) {
nativeSGERMAdapter.submitJob(jcod, null);
} else {
SGEQueue queue = new SGEQueue(jp.jobInfo.queueName);
nativeSGERMAdapter.submitJob(jcod, queue);
}
return jcod.getID();
}