Package eu.planets_project.tb.api.persistency

Examples of eu.planets_project.tb.api.persistency.ExperimentPersistencyRemote


  /* (non-Javadoc)
     * @see eu.planets_project.tb.api.TestbedManager#searchAllExperiments(java.lang.String)
     */
    public List<Experiment> searchAllExperiments(String toFind) {
        ExperimentPersistencyRemote dao_r = ExperimentPersistencyImpl.getInstance();
        return dao_r.searchAllExperiments(toFind);
    }
View Full Code Here


    /* (non-Javadoc)
   * @see eu.planets_project.tb.api.TestbedManager#isRegistered(long)
   */
  public boolean isRegistered(long expID) {
    ExperimentPersistencyRemote dao_r = ExperimentPersistencyImpl.getInstance();
    if(dao_r.findExperiment(expID)!=null)
      return true;
    return false;
  }
View Full Code Here

  /* (non-Javadoc)
   * @see eu.planets_project.tb.api.TestbedManager#isRegistered(eu.planets_project.tb.api.model.Experiment)
   */
  public boolean isRegistered(Experiment experiment) {
    ExperimentPersistencyRemote dao_r = ExperimentPersistencyImpl.getInstance();
    if(dao_r.findExperiment(experiment.getEntityID())!=null)
      return true;
    return false;
  }
View Full Code Here

     */
    public String getExperimentServiceRecordFixLog() {
        log.info("Looking through the experiments...");
        long start = System.currentTimeMillis();
       
        ExperimentPersistencyRemote ep = ExperimentPersistencyImpl.getInstance();
        Collection<Experiment> allExps = ep.queryAllExperiments();
        log.debug("Found "+allExps.size()+" experiment(s).");
       
        // Loop through, looking for missing service records.
        for( Experiment exp: allExps) {
            log.info("Looking at experiment: "+exp.getExperimentSetup().getBasicProperties().getExperimentName());
View Full Code Here

    /**
     * @return
     */
    public List<Experiment> getExperiments() {
        ExperimentPersistencyRemote ep = ExperimentPersistencyImpl.getInstance();
        List<Experiment> exps = new Vector<Experiment>();
        for( Long eid : this.getExperimentIds() ) {
            Experiment exp = ep.findExperiment( eid.longValue() );
            if( exp != null )
                exps.add( exp );
        }
        return exps;
    }
View Full Code Here

        series.add(30.0, 453.2);
        return new XYSeriesCollection(series);
    }
   
    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() ) {
View Full Code Here

        return chart;
       
    }
   
    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;
View Full Code Here

     * @return
     */
  public static ExperimentPersistencyRemote getInstance(){
    try{
      Context jndiContext = getInitialContext();
      ExperimentPersistencyRemote dao_r = (ExperimentPersistencyRemote) PortableRemoteObject.narrow(
          jndiContext.lookup("testbed/ExperimentPersistencyImpl/remote"), ExperimentPersistencyRemote.class);
      return dao_r;
    }catch (NamingException e) {
      //TODO integrate message into logging mechanism
      System.out.println("Failure in getting PortableRemoteObject: "+e.toString());
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.api.persistency.ExperimentPersistencyRemote

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.