Package gri.tasks

Examples of gri.tasks.AsyncTask


    }
 
  // --------------------------------------------- Running Jobs
 
  public String submitJob(JobSubmission submission) throws Exception {
    AsyncTask task = tasks.getAsyncTask(submission.getTaskId());
      //NOTE: This is first so that we can easily throw UnknownTaskExceptions
   
    String jobId = createJobId()//TODO: synchronize and error check until jobs.put()?
   
    AsyncTaskController controller = task.start(
        submission.getInputs(),
        submission.getEventHandler());
   
    JobEntry jobEntry = new JobEntry(jobId, submission, controller);
    jobs.put(jobId, jobEntry);
View Full Code Here

TOP

Related Classes of gri.tasks.AsyncTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.