From b4bb82656e290d0ad09739c3e466165365fc9ad4 Mon Sep 17 00:00:00 2001 From: wu-sheng Date: Thu, 7 Dec 2017 11:59:51 +0800 Subject: [PATCH] Close GraphNodeFinder#findNode, if need to build a graph across modules, it is module/provider 's responsibility, who add node, who provides service to continue after this node. --- .../collector/core/graph/GraphNodeFinder.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/apm-collector/apm-collector-core/src/main/java/org/skywalking/apm/collector/core/graph/GraphNodeFinder.java b/apm-collector/apm-collector-core/src/main/java/org/skywalking/apm/collector/core/graph/GraphNodeFinder.java index 44a78edf0..471537d24 100644 --- a/apm-collector/apm-collector-core/src/main/java/org/skywalking/apm/collector/core/graph/GraphNodeFinder.java +++ b/apm-collector/apm-collector-core/src/main/java/org/skywalking/apm/collector/core/graph/GraphNodeFinder.java @@ -30,25 +30,6 @@ public class GraphNodeFinder { this.graph = graph; } - /** - * Find an exist node to build the graph. - * - * @param handlerId of specific node in graph. - * @param outputClass of the found node - * @param type of given output class - * @return Node instance. - */ - public Node findNode(int handlerId, Class outputClass) { - ConcurrentHashMap graphNodeIndex = graph.getNodeIndex(); - Node node = graphNodeIndex.get(handlerId); - if (node == null) { - throw new NodeNotFoundException("Can't find node with handlerId=" - + handlerId - + " in graph[" + graph.getId() + "]"); - } - return node; - } - public Next findNext(int handlerId) { ConcurrentHashMap graphNodeIndex = graph.getNodeIndex(); Node node = graphNodeIndex.get(handlerId);