Package gri.tasks.managers

Examples of gri.tasks.managers.BasicJobManager$JobEntry


    Element managerElem = elem.getChild("taskManager");
    if (managerElem == null)
      throw new MissingElementException("taskManager", elem);

    TaskManager taskManager = (TaskManager)taskManagerSerializer.read(managerElem);
    return new BasicJobManager(taskManager);
  }
View Full Code Here


       
        RunScriptTask runScript = new RunScriptTask("job.bat", "cmd /C job.bat");
        GridpTaskManager taskManager = new GridpTaskManager(
            new File(directory), runScript);
       
        return new BasicJobManager(taskManager);
    }
View Full Code Here

    //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

 
  /**
   * Creates a local JobManager
   */
  protected static JobManager createLocalSystem(TaskManager taskManager) throws Exception {
    return new BasicJobManager(taskManager);
  }
View Full Code Here

      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)) {
       
View Full Code Here

    JobManagerSet managers = new JobManagerSet();
    managers.addJobManager("My Job Manager", jobManager);
    runTest(managers);
  }
  public void runTest(TaskCollection tasks) {
    runTest(new BasicJobManager(tasks));
  }
View Full Code Here

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

TOP

Related Classes of gri.tasks.managers.BasicJobManager$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.