Package gri.tasks.managers

Examples of gri.tasks.managers.JobManagerEntry


    Element jobManagerElem = elem.getChild("jobManager");
    if (jobManagerElem == null)
      throw new MissingElementException("jobManager", elem);
    JobManager jobManager = (JobManager)jobManagerSerializer.read(jobManagerElem);

    JobManagerEntry entry = new JobManagerEntry(id, jobManager);

    //name:
    Element nameElem = elem.getChild("name");
    if (nameElem != null)
      entry.setDisplayName(nameElem.getText());

    return entry;
  }
View Full Code Here


    protected void init() {
  //combo box:
  cboManagers = new ComboBoxWidget();
 
  List entries = managers.getJobManagerEntries();
  JobManagerEntry entry;
  for (int i=0; i<entries.size(); i++) {
      entry = (JobManagerEntry)entries.get(i);
      cboManagers.addOption(new Option(entry.getDisplayName(), entry));
  }
 
  cboManagers.addWidgetListener(new ManagerSelectListener());
 
  add(cboManagers.getDisplayComponent(), BorderLayout.NORTH);
View Full Code Here

  protected void addJobs(JobManagerSet jobManagers, StatusDisplayListener display) {
    display.setAutoDisplay(false);

    List entries = jobManagers.getJobManagerEntries();
    JobManagerEntry entry;
    for (int i=0; i<entries.size(); i++) {
      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(),
View Full Code Here

      System.out.println("Jobs");
      System.out.println("=========================");
      System.out.println();

      List entries = jobManagers.getJobManagerEntries();
      JobManagerEntry entry;
      for (int i=0; i<entries.size(); i++) {
        entry = (JobManagerEntry)entries.get(i);
        JobManager jobManager = entry.getJobManager();

        System.out.println(entry.getDisplayName());
        System.out.println("-------------------------");
        JobInfo [] jobs = jobManager.listJobs();
        for (int j=0; j<jobs.length; j++) {
          System.out.println(jobs[j].getJobId() + " " + jobs[j].getStatus());
View Full Code Here

      this.panel = panel;

      this.menuItems = new ArrayList();

      List managers = jobManagers.getJobManagerEntries();
      JobManagerEntry entry;
      for (int i=0; i<managers.size(); i++) {
        entry = (JobManagerEntry)managers.get(i);

        JMenuItem item = new JMenuItem(entry.getDisplayName());
        item.setActionCommand(entry.getId());
        item.addActionListener(this);
        menuItems.add(item);
      }
    }
View Full Code Here

        return;

      //clear display:
      panel.removeAllTasks();

      JobManagerEntry entry = jobManagers.getJobManager(id);
      if (entry == null) {
        panel.updateUI();
        throw new RuntimeException("Job manager not found: " + id);
      }

      JobManager jobManager = entry.getJobManager();
      List taskInfoList = getTaskInfoList(jobManager);
      for (int i=0; i<taskInfoList.size(); i++)
        panel.addTask((TaskInfo)taskInfoList.get(i));

      panel.updateUI();
View Full Code Here

TOP

Related Classes of gri.tasks.managers.JobManagerEntry

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.