Examples of addLogInfo()


Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

              wfResultItem.addLogInfo("completed XCDL extraction for B");
           
            //perform object comparison
              wfResultItem.addLogInfo("starting comparisson for XCDL1 and XCDL2");
            this.compareDigitalObjectsIdentical(dgoAXCDL, dgoEXCDL);
              wfResultItem.addLogInfo("completed comparisson for XCDL1 and XCDL2");
           
              wfResultItem.addLogInfo("successfully completed workflow for digitalObject with permanent uri:"+processingDigo);
              wfResultItem.setEndTime(System.currentTimeMillis());
           
        } catch (Exception e) {
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

            //perform object comparison
              wfResultItem.addLogInfo("starting comparisson for XCDL1 and XCDL2");
            this.compareDigitalObjectsIdentical(dgoAXCDL, dgoEXCDL);
              wfResultItem.addLogInfo("completed comparisson for XCDL1 and XCDL2");
           
              wfResultItem.addLogInfo("successfully completed workflow for digitalObject with permanent uri:"+processingDigo);
              wfResultItem.setEndTime(System.currentTimeMillis());
           
        } catch (Exception e) {
          String err = "workflow execution error for digitalObject with permanent uri: "+processingDigo+"";           
            wfResultItem.addLogInfo(err+" "+e);
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

              wfResultItem.addLogInfo("successfully completed workflow for digitalObject with permanent uri:"+processingDigo);
              wfResultItem.setEndTime(System.currentTimeMillis());
           
        } catch (Exception e) {
          String err = "workflow execution error for digitalObject with permanent uri: "+processingDigo+"";           
            wfResultItem.addLogInfo(err+" "+e);
            wfResultItem.setEndTime(System.currentTimeMillis());
        }
           
    return this.getWFResult();
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

    ServiceReport report = identifyResults.getReport();
    // report service status and type
    wfResultItem.setServiceReport(report);
    if (report.getType() == Type.ERROR) {
      String s = "Service execution failed: " + report.getMessage();
      wfResultItem.addLogInfo(s);
      throw new Exception(s);
    }
   
    //document the comparison's output
    URI ret = null;
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

    }
   
    //document the comparison's output
    URI ret = null;
    if((identifyResults.getTypes()!=null)&&(identifyResults.getTypes().size()>0)){
      wfResultItem.addLogInfo("identifying properties of object: "+digo.getPermanentUri());
      for(URI uri : identifyResults.getTypes()){
        if(ret == null){
          ret = uri;
        }
        String extractedInfo = "[uri: "+uri+"] \n";
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

        wfResultItem.addExtractedInformation(extractedInfo);
      }
    }
    else{
      String s = "Identification failed: format not identified";
      wfResultItem.addLogInfo(s);
      throw new Exception(s);
    }

    wfResultItem.addLogInfo("Identification completed, using format: "+ret);
    return ret;
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

      String s = "Identification failed: format not identified";
      wfResultItem.addLogInfo(s);
      throw new Exception(s);
    }

    wfResultItem.addLogInfo("Identification completed, using format: "+ret);
    return ret;
   }
   
   
    /**
 
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.ReadFileResult.addLogInfo()

    Collection<String> charsets = Utf8Util.isUtf8(bytes);
   
    if ( charsets == null ) {
      // charsets == null means the bytes are good UTF-8, so this
      // should NOT happen.
      result.addLogInfo("OK: already in UTF-8.");
      result.setError("setting error to avoid unnecesary conversion");
      result.setContents(new String(bytes, "UTF-8"));
      return result;
    }
   
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.ReadFileResult.addLogInfo()

      result.setError("setting error to avoid unnecesary conversion");
      result.setContents(new String(bytes, "UTF-8"));
      return result;
    }
   
    result.addLogInfo("Charset of the file may be one of: " +charsets+ "\n");
    result.addLogInfo("Attempting conversiones..\n");
   
    for ( String charsetName : charsets ) {
      try {
        String outputStr = _asString(bytes, charsetName);
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.ReadFileResult.addLogInfo()

      result.setContents(new String(bytes, "UTF-8"));
      return result;
    }
   
    result.addLogInfo("Charset of the file may be one of: " +charsets+ "\n");
    result.addLogInfo("Attempting conversiones..\n");
   
    for ( String charsetName : charsets ) {
      try {
        String outputStr = _asString(bytes, charsetName);
        result.addLogInfo("Conversion from " +charsetName+ ": OK.\n");
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.