public boolean waitForSchedulerJobResponse() throws InterruptedException {
  result=false;
  jobStatusWatcher.await();
  return result;
}

public boolean waitForSchedulerJobResponse ( ) throws InterruptedException { result = false ; jobStatusWatcher . await ( ) ; return result ; }
wait indefinitely to receive events from driver
