Package gri.gridp.tasks.managers

Examples of gri.gridp.tasks.managers.GridpTaskManager


     */
    protected static JobManager createLocalSystem() {
        String directory = "C:\\Program Files\\GRI\\JServer\\modules";
       
        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


   * Creates a local TaskManager for GRIDP tasks
   */
  public TaskManager getTaskManager() {
    ModuleManager moduleManager = getModuleManager();
    RunScriptTask runScript = new RunScriptTask(scriptFile, execCmd);
    return new GridpTaskManager(moduleManager, runScript);
  }
View Full Code Here

   * by the SessionFactory.
   */
  public TaskManager getSshTaskManager(SessionFactory sessionFactory) {
    ModuleManager moduleManager = getModuleManager();
    SshScriptTask runScript = new SshScriptTask(sessionFactory, scriptFile, execCmd);
    return new GridpTaskManager(moduleManager, runScript);
  }
View Full Code Here

    Element scriptElem = elem.getChild("script");
    if (scriptElem == null)
      throw new MissingElementException("script");
    runScriptTask = (RunScriptTask)scriptSerializer.read(scriptElem);

    return new GridpTaskManager(moduleManager, runScriptTask);
  }
View Full Code Here

TOP

Related Classes of gri.gridp.tasks.managers.GridpTaskManager

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.