Package gri.tasks.managers

Examples of gri.tasks.managers.JobManager.submitJob()


   
    JobEntry job;
   
    try {
      JobSubmission submission = createJobSubmission();
      String jobId = jobManager.submitJob(submission);
      job = new JobEntry(submission.getTaskId(), jobId, jobManager);
    }
    catch(Exception e) {
      messenger.error(e);
      return;
View Full Code Here


        //job.setTaskId("type-type");
        //job.setInput("file", new TextMemFile("myFile2.txt", "jfdkjsfkjafk"));
       

        try {
            String jobKey = jobManager.submitJob(job);
            System.out.println("Submitted: " + jobKey);

            AsyncTaskController control = jobManager.getJobController(jobKey);
            while (control.getStatus() != JobManager.COMPLETE) {
                Thread.sleep(500);
View Full Code Here

 
  submission.setInput("inputTasks", tasks);
 
 
  //submit job:
  String jobId = jobManager.submitJob(submission);
 
  while (jobManager.getJobStatus(jobId) != JobManager.COMPLETE) {
      try {
    Thread.sleep(1000);
      }
View Full Code Here

           
            JobSubmission job = jobSerializer.readJob(rootElem);
            job.setContextParam("WORKING_DIRECTORY", workDir);

            //submit:
            String jobKey = jobManager.submitJob(job);
            logger.debug("Job submitted: " + jobKey);
           
            RunningJobInfo jobInfo = new RunningJobInfo(jobKey, taskId, workDir);
            jobInfoManager.storeJobInfo(jobInfo);
View Full Code Here

   * notified.
   */
  protected void submitJob(TaskInfo taskInfo, JobSubmission submission) throws Exception {
    //execute:
    JobManager jobManager = taskInfo.getJobManager();
    String jobId = jobManager.submitJob(submission);

    //notify listeners (provide running task object):
    JobEntry jobEntry = new JobEntry(submission.getTaskId(), jobId, jobManager);
   
    for (int i=0; i<submitListeners.size(); i++)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.