Package gri.tasks.managers.util

Examples of gri.tasks.managers.util.RunningJobInfo


            //submit:
            String jobKey = jobManager.submitJob(job);
            logger.debug("Job submitted: " + jobKey);
           
            RunningJobInfo jobInfo = new RunningJobInfo(jobKey, taskId, workDir);
            jobInfoManager.storeJobInfo(jobInfo);

            //response:
            BasicResponseMessage msg = new BasicResponseMessage("submitJob");
            msg.setResult("Success");
View Full Code Here


 
  //process:
  try {
     
            //get serializer:
            RunningJobInfo info = jobInfoManager.getJobInfo(req.getJobId());
            String taskId = info.getTaskId();
           
            JobManager jobManager = getJobManager();
           
            Map config = new HashMap();
           
            config.putAll(req.getParameters())//do first (so user can't overwrite following params)
           
            config.put("JOB_MANAGER", jobManager);
            config.put("JOB_MANAGER_SERVICE", this);
            config.put("JOB_ID", req.getJobId());
            config.put("TASK_ID", taskId);
            config.put("WORKING_DIRECTORY", info.getWorkingDirectory());
           
           
            JDOMSerializer paramSerializer = serializers
              .getTaskSerializerSet(jobManager, taskId)
              .getOutputParameterSerializer(config);
View Full Code Here

    public String freeJob(String jobId) throws IOException {
       
        try {
            //delete workdir (if specified):
            if (deleteDirectoriesWhenFreed) {
          RunningJobInfo jobInfo = jobInfoManager.getJobInfo(jobId);
          File workdir = jobInfo.getWorkingDirectory();
         
          if (workdir.exists())
              rmdirs(workdir);
            }
View Full Code Here

           
            //submit:
            String wkflId = wkflManager.submitWorkflow(wkfl);
            logger.debug("Workflow submitted: " + wkflId);
           
            RunningJobInfo jobInfo = new RunningJobInfo(wkflId, null, workDir);
            jobInfoManager.storeJobInfo(jobInfo);

            //response:
            BasicResponseMessage msg = new BasicResponseMessage("submitJob");
            msg.setResult("Success");
View Full Code Here

     
      WorkflowManager wkflManager = getWorkflowManager();
      WorkflowInfo wkflInfo = wkflManager.getWorkflowInfo(wkflId);
      String taskId = wkflInfo.getJobInfo(jobIndex).getTaskId();
     
      RunningJobInfo jobInfo = jobInfoManager.getJobInfo(wkflId);
                
            //create serializer config:
            Map config = new HashMap();
           
            config.putAll(req.getParameters())//do first (so user can't overwrite following params)
           
            config.put("WORKFLOW_MANAGER", wkflManager);
            config.put("WORKFLOW_MANAGER_SERVICE", this);
            config.put("WORKFLOW_ID", req.getJobId());
            config.put("WORKFLOW_ID", wkflId);
            config.put("WORKING_DIRECTORY", jobInfo.getWorkingDirectory())//TODO: this is wrong
           
           
            JDOMSerializer paramSerializer = serializers
              .getWorkflowSerializerSet(wkflManager)
              .getOutputParameterSerializer(jobIndex, taskId, config);
View Full Code Here

    public String freeWorkflow(String id) throws IOException {
       
        try {
            //delete workdir (if specified):
            if (deleteDirectoriesWhenFreed) {
          RunningJobInfo jobInfo = jobInfoManager.getJobInfo(id);
          File workdir = jobInfo.getWorkingDirectory();
         
          if (workdir.exists())
              rmdirs(workdir);
            }
View Full Code Here

TOP

Related Classes of gri.tasks.managers.util.RunningJobInfo

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.