private ExecutionMetadata(Graph executionMetadata, IRI contentItemUri, BlankNodeOrIRI ce){ chainExecution = new ChainExecution(executionMetadata, ce); engineExecutions = new HashMap<String,Execution>(); for(BlankNodeOrIRI ex : ExecutionMetadataHelper.getExecutions(executionMetadata, ce)){ Execution execution = new Execution(chainExecution,executionMetadata, ex); engineExecutions.put(execution.getExecutionNode().getEngineName(),execution); } }
public Execution(ChainExecution parent, Graph graph, BlankNodeOrIRI node) { this.chain = parent; this.graph = graph; this.node = node; BlankNodeOrIRI executionNode = ExecutionMetadataHelper.getExecutionNode(graph, node); if(executionNode != null){ this.executionNode = new ExecutionNode(graph, executionNode); } else { this.executionNode = null; } this.status = getReference(graph, node, ExecutionMetadata.STATUS); this.started = ExecutionMetadataHelper.getStarted(graph, node); this.completed = ExecutionMetadataHelper.getCompleted(graph, node); if(started != null && completed != null){ this.duration = completed.getTime() - started.getTime(); } else { this.duration = null; } }
public Execution(ChainExecution parent, Graph graph, BlankNodeOrIRI node) { this.chain = parent; this.graph = graph; this.node = node; BlankNodeOrIRI executionNode = ExecutionMetadataHelper.getExecutionNode(graph, node); if(executionNode != null){ this.executionNode = new ExecutionNode(graph, executionNode); } else { this.executionNode = null; } this.status = getReference(graph, node, ExecutionMetadata.STATUS); this.started = ExecutionMetadataHelper.getStarted(graph, node); this.completed = ExecutionMetadataHelper.getCompleted(graph, node); if(started != null && completed != null){ this.duration = completed.getTime() - started.getTime(); } else { this.duration = null; } }
private ExecutionMetadata(Graph executionMetadata, IRI contentItemUri, BlankNodeOrIRI ce){ chainExecution = new ChainExecution(executionMetadata, ce); engineExecutions = new HashMap<String,Execution>(); for(BlankNodeOrIRI ex : ExecutionMetadataHelper.getExecutions(executionMetadata, ce)){ Execution execution = new Execution(chainExecution,executionMetadata, ex); engineExecutions.put(execution.getExecutionNode().getEngineName(),execution); } }
eds = eds + ed; int edp = Math.round(ed*100/(float)cd); message.append(ee.getExecutionNode().getEngineName()) .append(": ").append(ed).append("ms (").append(edp).append("%)");