Package org.apache.stanbol.enhancer.servicesapi.helper.execution

Examples of org.apache.stanbol.enhancer.servicesapi.helper.execution.ChainExecution


            executionMetadata = null;
        }
        if (executionMetadata != null) {
            NonLiteral ce = ExecutionMetadataHelper.getChainExecution(executionMetadata, ci.getUri());
            if (ce != null) {
                chainExecution = new ChainExecution(executionMetadata, ce);
                engineExecutions = new ArrayList<Execution>();
                for (NonLiteral ex : ExecutionMetadataHelper.getExecutions(executionMetadata, ce)) {
                    engineExecutions.add(new Execution(chainExecution, executionMetadata, ex));
                }
                Collections.sort(engineExecutions);
View Full Code Here


    protected static void logExecutionTimes(Logger logger, EnhancementJob job){
      if(logger.isInfoEnabled()){
        try {
          ExecutionMetadata em = ExecutionMetadata.parseFrom(
              job.getExecutionMetadata(),job.getContentItem().getUri());
          ChainExecution ce = em.getChainExecution();
          long cd = ce.getDuration();
          logger.info("Executed Chain {} in {}ms", ce.getChainName(),
                ce.getDuration());
          logger.info(" > ContentItem: {}", job.getContentItem().getUri().getUnicodeString());
          List<Execution> ees = new ArrayList<Execution>(em.getEngineExecutions().values());
          //sort by start date (execution order)
          Collections.sort(ees, new Comparator<Execution>() {
            @Override
View Full Code Here

            executionMetadata = null;
        }
        if(executionMetadata != null){
            NonLiteral ce = ExecutionMetadataHelper.getChainExecution(executionMetadata, ci.getUri());
            if(ce != null){
                chainExecution = new ChainExecution(executionMetadata, ce);
                engineExecutions = new ArrayList<Execution>();
                for(NonLiteral ex : ExecutionMetadataHelper.getExecutions(executionMetadata, ce)){
                    engineExecutions.add(new Execution(chainExecution,executionMetadata, ex));
                }
                Collections.sort(engineExecutions);
View Full Code Here

            executionMetadata = null;
        }
        if(executionMetadata != null){
            NonLiteral ce = ExecutionMetadataHelper.getChainExecution(executionMetadata, ci.getUri());
            if(ce != null){
                chainExecution = new ChainExecution(executionMetadata, ce);
                engineExecutions = new ArrayList<Execution>();
                for(NonLiteral ex : ExecutionMetadataHelper.getExecutions(executionMetadata, ce)){
                    engineExecutions.add(new Execution(chainExecution,executionMetadata, ex));
                }
                Collections.sort(engineExecutions);
View Full Code Here

TOP

Related Classes of org.apache.stanbol.enhancer.servicesapi.helper.execution.ChainExecution

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.