Package gri.tasks.managers

Examples of gri.tasks.managers.JobManagerSet


      throw new RuntimeException("Not implemented");
    }
    public JobManagerSet readSet(Element elem) throws IOException {
      ListSerializer listSerializer = new ListSerializer(jobEntrySerializer, "jobManagerEntry");
      List entries = listSerializer.readList(elem);
      return new JobManagerSet(entries);
    }
View Full Code Here


    dan.swing.style.AppStyles.loadSystemLookAndFeel();
    gri.tasks.gui.DefaultStyles.load();
    gri.tasks.gui.icons.DefaultStyles.load();
    gri.tasks.gui.workflows.DefaultStyles.load();

    JobManagerSet jobManagers;
    //FileViewManager viewManager;

    try {
      //jobManagers = LoadManagers.load(new File("managers.xml"));
      jobManagers = loadJobManagers();
View Full Code Here

  }
 
  public static JobManagerSet loadJobManagers() throws Exception {

    //load tasks:
    JobManagerSet jobManagers = new JobManagerSet();

    String modulePath = "C:\\Users\\rogersda\\Desktop\\Gridp\\Module Collection";
    File moduleFolder = new File(modulePath);

    //TaskProvider provider = getSSHProvider(directory);

    //GRIDP:

    TaskManager taskManager1 = getLocalTaskManager(moduleFolder);
    JobManager gridpJobManager = new BasicJobManager(taskManager1);
    //gridpJobManager = createRemoteSystem(provider);
    jobManagers.addJobManager("Local System", gridpJobManager);

    //TaskManager taskManager2 = gridp.getSSHProvider(directory);
    //JobManager gridpJobManager2 = gridp.createLocalSystem(taskManager2);
    //jobManagers.addJobManager("SSH Altix", gridpJobManager2);

    TaskCollection tasks = test_gui.loadTaskEntries();
    JobManager funcManager = new BasicJobManager(new BasicTaskManager(tasks));
    jobManagers.addJobManager("Functions", funcManager);

    return jobManagers;
  }
View Full Code Here

  public static void main(String [] args) {
    gri.tasks.gui.DefaultStyles.load();
    gri.tasks.gui.icons.DefaultStyles.load();

    JobManagerSet jobManagers;
    FileViewManager viewManager;

    try {
      test_gui.loadJar(new File("files/incava-diff.jar"));
     
View Full Code Here

  /**
   * Runs the program:
   */
  public void execute() throws Exception {
 
    JobManagerSet jobManagers = loadJobManagers();
    //FileViewManager viewManager = loadViewManager();
   
    TestShell shell = new TestShell();
    //TODO: configure (?)
    shell.runTest(jobManagers);
View Full Code Here

   * Loads the JobManagerSet used in the program
   */
  protected JobManagerSet loadJobManagers() throws Exception {
   
    //load from config file:
    JobManagerSet jobManagers = new JobManagerSet();
    if (managerConfigFile != null)
      jobManagers.addAll(Loader.load(managerConfigFile));
   
    //load GRIDP JobManager from module folder:
    if (moduleFolder != null) {
      int mode = windowsMode ?
          GridpFactory.WINDOWS : GridpFactory.UNIX;
     
      GridpFactory factory = new GridpFactory(moduleFolder, mode);
      TaskManager taskManager = factory.getTaskManager();
      BasicJobManager jobManager = new BasicJobManager(taskManager);
     
      //auto-generate ID:
      String id = "GRIDP Modules";
      if (jobManagers.hasJobManager(id)) {
       
        String idBase = id;
        int index = 1;
        while (jobManagers.hasJobManager(id)) {
          index++;
          id = idBase + " (" + index + ")";
        }
      }
     
      jobManagers.addJobManager(id, jobManager);
    }
   
    return jobManagers;
  }
View Full Code Here

      throw new RuntimeException("Not implemented");
    }
    public JobManagerSet readSet(Element elem) throws IOException {
      ListSerializer listSerializer = new ListSerializer(jobEntrySerializer, "jobManagerEntry");
      List entries = listSerializer.readList(elem);
      return new JobManagerSet(entries);
    }
View Full Code Here

    panel.setDefaultButtonChangeListener(updater);

    frame.setVisible(true);
  }
  public void runTest(JobManager jobManager) {
    JobManagerSet managers = new JobManagerSet();
    managers.addJobManager("My Job Manager", jobManager);
    runTest(managers);
  }
View Full Code Here

    //display:
    frame.setVisible(true);
  }

  public void runTest(JobManager jobManager) {
    JobManagerSet jobManagers = new JobManagerSet();
    jobManagers.addJobManager("Default Job Manager", jobManager);
    runTest(jobManagers);
  }
View Full Code Here

TOP

Related Classes of gri.tasks.managers.JobManagerSet

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.