Package eu.planets_project.tb.api.data.util

Examples of eu.planets_project.tb.api.data.util.DataHandler


    //Get the experiment's data we want to add autoEval FileBMGoals for
    Collection<Entry<String,String>> data = exp.getExperimentExecutable().getMigrationDataEntries();

    //iterate over all experiemnt data entries
    for(Entry<String,String> dataEntry : data){
      DataHandler dh = new DataHandlerImpl();
      try {
        URI inputFileURI = dh.get(dataEntry.getKey()).getDownloadUri();
        //URI outputFileURI = dh.getHttpFileRef(new File(dataEntry.getValue()), false);
        File fInputFile = new File(dataEntry.getKey());
        File fOutputFile = new File(dataEntry.getValue());
       
        //the fileBMGoals for the file to evaluate
View Full Code Here


     * @param wfr
     * @param exp
     */
    public static void recordWorkflowResultToExperiment(long eid, WorkflowResult wfr, String filename,
            BatchExecutionRecordImpl batch, Experiment exp ) {
        DataHandler dh = new DataHandlerImpl();
        try {
            ExecutionRecordImpl rec = new ExecutionRecordImpl(batch);
            rec.setDigitalObjectReferenceCopy(filename);
            try {
                rec.setDigitalObjectSource(dh.get(filename).getName());
            } catch (FileNotFoundException e) {
                rec.setDigitalObjectSource(filename);
            }
            // Populate the exec record:
            rec.setStartDate(wfr.getStartDate());
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.api.data.util.DataHandler

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.