Examples of updateExperiment()


Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

        Experiment exp = expBean.getExperiment();
        // First, catch any updates.
        updateBMEvaluationAction();
        exp.getExperimentEvaluation().setState(Experiment.STATE_COMPLETED);
        log.debug("attempting to save finalized evaluation. "+ exp.getExperimentEvaluation().getState());
        testbedMan.updateExperiment(exp);
        log.debug("saved finalized evaluation. "+ exp.getExperimentEvaluation().getState());
        // And report:
        FacesMessage fmsg = new FacesMessage();
        fmsg.setDetail("Evaluation Data finalised!");
        fmsg.setSummary("Evaluation Data finalised!");
View Full Code Here

Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

        if( stage != 1 || ( stage == 1 && "success".equals(result) ) ) {
            // Now save any updates.
            Experiment exp = expBean.getExperiment();
            log.info("Saving the bean: "+exp.getExperimentSetup().getExperimentTypeID());
            // Commit the changes:
            testbedMan.updateExperiment(exp);
        } else {
            log.warn("Did not save update.");
        }
       
        FacesContext ctx = FacesContext.getCurrentInstance();
View Full Code Here

Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

    //clear the already added data from the exp. executable
    if(exp.getExperimentExecutable()!=null){
//      exp.getExperimentExecutable().removeAllInputData();
      //this has a constructor which requires the ServiceTemplate to be set.
//      exp.removeExperimentExecutable();
      testbedMan.updateExperiment(exp);
    }
   
        NewExpWizardController.redirectToExpStage(expBean.getID(), 2);
        return "success";
  }
View Full Code Here

Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

       
        // Approve the experiment, automatically:
        AdminManagerImpl.approveExperimentAutomatically(exp);
 
        // Update the Experiment Bean:
          testbedMan.updateExperiment(exp);
          expBean.setCurrentStage(ExperimentBean.PHASE_EXPERIMENTEXECUTION);
          expBean.setApproved(true);
      }
   
View Full Code Here

Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

            log.info("Status: Invoked = "+exp.getExperimentExecutable().isExecutableInvoked());
            log.info("Status: Invoked = "+exp.getExperimentExecution().isExecutionInvoked());
            exp.getExperimentExecutable().setExecutableInvoked(true);
            exp.getExperimentExecutable().setExecutionCompleted(false);
            // Store any changes:
            testbedMan.updateExperiment(exp);
            log.info("Status: Invoked = "+exp.getExperimentExecutable().isExecutableInvoked());
            log.info("Status: Invoked = "+exp.getExperimentExecution().isExecutionInvoked());
            log.info("Status: Queue = "+exp.getExperimentExecutable().getBatchExecutionIdentifier()
                    + " " + exp.getExperimentExecutable().getBatchSystemIdentifier() );
    }
View Full Code Here

Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

              log.info("Got No Such Job for key: "+job_key);
              exp.getExperimentExecutable().setExecutionSuccess(false);
              exp.getExperimentExecutable().setExecutionCompleted(true);
              exp.getExperimentExecution().setState(Experiment.STATE_COMPLETED);
              exp.getExperimentEvaluation().setState(Experiment.STATE_IN_PROGRESS);  
              testbedMan.updateExperiment(exp);
              return -1;
          } else if( pb.getJobStatus(job_key).equals(TestbedBatchJob.NOT_STARTED) ) {
              log.info("Got NOT STARTED for key: "+job_key);
              return 0;
          } else if( pb.getJobStatus(job_key).equals(TestbedBatchJob.RUNNING) ) {
View Full Code Here

Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

          } else {
              log.info("Got job complete.");
              exp.getExperimentExecution().setState(Experiment.STATE_COMPLETED);
              exp.getExperimentEvaluation().setState(Experiment.STATE_IN_PROGRESS);  
              testbedMan.updateExperiment(exp);
              // Appears to need to return a number greater that 100 in order to force the progress bar to refresh properly.
              return 101;
          }
    }
   
View Full Code Here

Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

          TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
          ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
          // Save these changes:
          Experiment exp = expBean.getExperiment();
          ExperimentImpl.resetToApprovedStage(exp);
          testbedMan.updateExperiment(exp);
        return "success";
    }
   
   public String commandPullInWFResultsAfterFailure(){
         ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
View Full Code Here

Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

      
       //call invocation on the evaluation workflow
       testbedMan.executeAutoEvaluationWf(exp);
        
       //update the data
       testbedMan.updateExperiment(exp);
      
         expBean.setExecuteAutoEvalWfRunning(false);
        
        NewExpWizardController.redirectToExpStage(expBean.getID(), 6);
        return "success";
View Full Code Here

Examples of eu.planets_project.tb.api.TestbedManager.updateExperiment()

        if (exp.getExperimentExecution().isExecutionCompleted()) {
          exp.getExperimentExecution().setState(Experiment.STATE_COMPLETED);
          exp.getExperimentEvaluation().setState(Experiment.STATE_IN_PROGRESS);       
          expBean.setCurrentStage(ExperimentBean.PHASE_EXPERIMENTEVALUATION);
          initEvaluationBenchmarks(exp);
          testbedMan.updateExperiment(exp);
         
            NewExpWizardController.redirectToExpStage(expBean.getID(), 6);
            return "success";
        } else
        return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.