Package eu.planets_project.tb.api.model

Examples of eu.planets_project.tb.api.model.Experiment


   
    public JFreeChart createXYChart(String expId) {
        ExperimentPersistencyRemote edao = ExperimentPersistencyImpl.getInstance();
        long eid = Long.parseLong(expId);
        log.info("Building experiment chart for eid = "+eid);
        Experiment exp = edao.findExperiment(eid);

        final String expName = exp.getExperimentSetup().getBasicProperties().getExperimentName();
        final XYSeries series = new XYSeries(expName);

        for( BatchExecutionRecordImpl batch : exp.getExperimentExecutable().getBatchExecutionRecords() ) {
            int i = 1;
            for( ExecutionRecordImpl exr : batch.getRuns() ) {
                //log.info("Found Record... "+exr+" stages: "+exr.getStages());
                if( exr != null && exr.getStages() != null ) {
                    // Look up the object, so we can get the name.
View Full Code Here


   
    public JFreeChart createWallclockChart(String expId) {
        ExperimentPersistencyRemote edao = ExperimentPersistencyImpl.getInstance();
        long eid = Long.parseLong(expId);
        log.info("Building experiment chart for eid = "+eid);
        Experiment exp = edao.findExperiment(eid);

        final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
        final String expName = exp.getExperimentSetup().getBasicProperties().getExperimentName();
       
        boolean hasSuccesses = false;
        boolean hasFails = false;

        for( BatchExecutionRecordImpl batch : exp.getExperimentExecutable().getBatchExecutionRecords() ) {
            int i = 1;
            List<ExecutionRecordImpl> runs = new ArrayList<ExecutionRecordImpl>(batch.getRuns());
            Collections.sort(runs, new RunComparator() );
            for( ExecutionRecordImpl exr : runs ) {
                //log.info("Found Record... "+exr+" stages: "+exr.getStages());
View Full Code Here

   * @throws Exception
   */
  private void submitTicketToExecutionQueue(String ticket, TestbedBatchJob testbedBatchJob, long expID) throws Exception{
    jobs.put(ticket, testbedBatchJob);
   
        Experiment exp = tbManager.getExperiment(expID);  
        //2. decide how long we want to poll for an object before from the engine before we throw a time-out
        //2a. automatically approved experiments - use shortTimeout (5 Minutes)
        if(exp.getExperimentApproval().getApprovalUsersIDs().contains(AdminManagerImpl.APPROVAL_AUTOMATIC_USER)){
          submitTicketForPollingToQueue(ticket,TestbedWEEBatchProcessor.QueueName_shortTimeout,this.getBatchProcessorSystemIdentifier());
        }
        //2b manually approved experiments - use longTimeout (3 Days)
        if(!exp.getExperimentApproval().getApprovalUsersIDs().contains(AdminManagerImpl.APPROVAL_AUTOMATIC_USER)){
          submitTicketForPollingToQueue(ticket,TestbedWEEBatchProcessor.QueueName_longTimeout,this.getBatchProcessorSystemIdentifier());
        }
  }
View Full Code Here

   
    //check if job object still exists
    if(job==null){
       //when null (e.g. not in memory any more) try to pull in experiment ID from current session
       ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
           Experiment exp = expBean.getExperiment();
           //in the case the server has already been shut down and in memory allocation is missing
           wfLog = retrieveWorkflowResult(exp.getExperimentExecutable().getBatchExecutionIdentifier());
           weeTBUpdater.processNotify_WorkflowCompleted(exp.getEntityID(),wfLog);
           log.debug("notifyComplete: complete for "+job_key+" experimentID: "+exp.getEntityID());
    }else{
      wfLog = retrieveWorkflowResult(job_key);
      weeTBUpdater.processNotify_WorkflowCompleted(job.getExpID(),wfLog);
      log.debug("notifyComplete: complete for "+job_key+" experimentID: "+job.getExpID());
    }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.api.model.Experiment

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.