* @throws DagEngineException thrown if the job could not be created.
*/
@Override
public String submitJob(Configuration conf, boolean startJob) throws DagEngineException {
validateSubmitConfiguration(conf);
SubmitCommand submit = new SubmitCommand(conf, getAuthToken());
try {
String jobId = submit.call();
if (startJob) {
start(jobId);
}
return jobId;
}