private void handleInvocation(final AggregatedInvocation invocation) { final IVertex sourceVertex = invocation.getSource() != null ? this.addVertex(invocation.getSource()) : this.addVertexForEntry(); // NOCS (declarative) final IVertex targetVertex = this.addVertex(invocation.getTarget()); final long calls = this.statisticsModel.get(invocation).getStatistic(Units.RESPONSE_TIME).getProperty(Properties.COUNT); this.addEdge(sourceVertex, targetVertex, calls); }
protected void addExecution(final DeployedOperation source, final DeployedOperation target) { final ComposedKey<DeployedOperation, DeployedOperation> key = ComposedKey.of(source, target); if (!this.executionModel.getAggregatedInvocations().containsKey(key)) { final AggregatedInvocation invocation = this.factory.createAggregatedInvocation(); invocation.setSource(source); invocation.setTarget(target); this.executionModel.getAggregatedInvocations().put(key, invocation); } }