Package gri.tasks.gui.util

Examples of gri.tasks.gui.util.JobEntry


   */
  protected void runTask() {

    JobManager jobManager = taskInfo.getJobManager();
   
    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


    //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++)
      ((JobSubmissionListener)submitListeners.get(i)).jobSubmitted(jobEntry);
  }
View Full Code Here

      entry = (JobManagerEntry)entries.get(i);
      JobManager jobManager = entry.getJobManager();

      JobInfo [] jobInfo = jobManager.listJobs();
      for (int j=0; j<jobInfo.length; j++) {
        JobEntry job = new JobEntry(
            jobInfo[j].getTaskId(),
            jobInfo[j].getTaskId(),
            jobManager);

        display.jobSubmitted(job);
View Full Code Here

    Component comp;
    for (int i=0; i<getComponentCount(); i++) {
      comp = getComponent(i);
      if (comp instanceof JobStatusPanel) {
        JobStatusPanel panel = (JobStatusPanel)comp;
        JobEntry jobEntry2 = panel.getJobEntry();

        if (jobEntry.equals(jobEntry2))
          return i;
      }
    }
View Full Code Here

TOP

Related Classes of gri.tasks.gui.util.JobEntry

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.