Package gri.tasks.managers

Examples of gri.tasks.managers.TaskManager


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


    return true;
  }
 
  public void execute() throws Exception {
   
    TaskManager taskManager = getTaskManager();
   
    if (mode == LIST_TASKS) {
      String [] taskIds = taskManager.getTaskIds();
     
      System.out.println("Tasks:");
      for (int i=0; i<taskIds.length; i++)
        System.out.println("  " + taskIds[i]);
      System.out.println();
    }
   
    else if (mode == DESCRIBE_TASK) {
      TaskDef taskDef = taskManager.getTaskDefinition(moduleName);
      System.out.println(taskDef);
    }
   
    else if (mode == RUN_TASK) {
     
      Task task = taskManager.getTask(moduleName);
     
      System.out.println("Loading parameters...");
      Map inputs = parseInputs(task);
      printParams(inputs, "Loaded:");
           
View Full Code Here

TOP

Related Classes of gri.tasks.managers.TaskManager

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.