Exemple #1
0
 public boolean waitForCompletion(boolean verbose)
     throws IOException, InterruptedException, ClassNotFoundException, Exception {
   if (state == JobState.DEFINE) {
     submit();
   }
   if (verbose) {
     jobClient.monitorAndPrintJob(this, info, getNumSuperStep());
   } else {
     info.waitForCompletion();
   }
   return isSuccessful();
 }
Exemple #2
0
 public void submit() throws IOException, ClassNotFoundException, InterruptedException, Exception {
   ensureState(JobState.DEFINE);
   info = jobClient.submitJobInternal(this);
   state = JobState.RUNNING;
 }