From 07fd73d9562bb69264243eba7012bf0f87c4abcf Mon Sep 17 00:00:00 2001 From: Woonduk Kang Date: Fri, 14 Feb 2014 06:23:52 +0000 Subject: [PATCH] =?UTF-8?q?[=EA=B0=95=EC=9A=B4=EB=8D=95]=20[WEB-49]=20log?= =?UTF-8?q?=EB=A0=88=EB=B2=A8=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@3340 84d0f5b1-2673-498c-a247-62c4ff18d310 --- .../java/com/nhn/pinpoint/web/applicationmap/Node.java | 3 +-- .../pinpoint/web/mapper/MapStatisticsCalleeMapper.java | 10 ++++------ .../pinpoint/web/mapper/MapStatisticsCallerMapper.java | 7 +++---- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/nhn/pinpoint/web/applicationmap/Node.java b/src/main/java/com/nhn/pinpoint/web/applicationmap/Node.java index 46fb80399..ed73349f7 100644 --- a/src/main/java/com/nhn/pinpoint/web/applicationmap/Node.java +++ b/src/main/java/com/nhn/pinpoint/web/applicationmap/Node.java @@ -54,7 +54,6 @@ public class Node implements JsonSerializable { if (hostList != null) { // 이 put은 정확하지 않음. // this.hostList.addHostList(hostList); - logger.debug("createApplication"); this.hostList.put(hostList); } @@ -112,7 +111,7 @@ public class Node implements JsonSerializable { if (node == null) { throw new NullPointerException("node must not be null"); } - logger.debug("merge node this={}, node={}", this.application, node.application); + logger.trace("merge node this={}, node={}", this.application, node.application); // 리얼 application을 실제빌드할때 copy하여 만들기 때문에. add할때 데이터를 hostList를 add해도 된다. this.hostList.addHostList(node.hostList); diff --git a/src/main/java/com/nhn/pinpoint/web/mapper/MapStatisticsCalleeMapper.java b/src/main/java/com/nhn/pinpoint/web/mapper/MapStatisticsCalleeMapper.java index c9d116827..65712a00f 100644 --- a/src/main/java/com/nhn/pinpoint/web/mapper/MapStatisticsCalleeMapper.java +++ b/src/main/java/com/nhn/pinpoint/web/mapper/MapStatisticsCalleeMapper.java @@ -33,10 +33,8 @@ public class MapStatisticsCalleeMapper implements RowMapper final KeyValue[] keyList = result.raw(); // key is destApplicationName. - final List stat = new ArrayList(keyList.length + 10); + final List linkStatisticsList = new ArrayList(keyList.length + 10); - // key is destApplicationName -// Map> callerAppHostMap = new HashMap>(); for (KeyValue kv : keyList) { @@ -54,13 +52,13 @@ public class MapStatisticsCalleeMapper implements RowMapper boolean isError = histogramSlot == (short) -1; if (logger.isDebugEnabled()) { - logger.debug(" Fetched Callee. {} -> {} ({})", caller, callee, requestCount); + logger.debug(" Fetched Callee. {} -> {} ({}) calleeHost", caller, callee, requestCount, calleeHost); } LinkStatistics statistics = new LinkStatistics(caller, callee); statistics.addSample(calleeHost, callee.getServiceTypeCode(), (isError) ? (short) -1 : histogramSlot, requestCount); - stat.add(statistics); + linkStatisticsList.add(statistics); } // statistics에 dest host정보 삽입. @@ -68,7 +66,7 @@ public class MapStatisticsCalleeMapper implements RowMapper // entry.getValue().addToHosts(callerAppHostMap.get(entry.getKey())); // } - return stat; + return linkStatisticsList; } private Application readCalleeApplication(byte[] qualifier) { diff --git a/src/main/java/com/nhn/pinpoint/web/mapper/MapStatisticsCallerMapper.java b/src/main/java/com/nhn/pinpoint/web/mapper/MapStatisticsCallerMapper.java index 8bdf40a10..e65f12408 100644 --- a/src/main/java/com/nhn/pinpoint/web/mapper/MapStatisticsCallerMapper.java +++ b/src/main/java/com/nhn/pinpoint/web/mapper/MapStatisticsCallerMapper.java @@ -31,8 +31,7 @@ public class MapStatisticsCallerMapper implements RowMapper } final KeyValue[] keyList = result.raw(); - final List stat = new ArrayList(keyList.length + 10); - + final List linkStatisticsList = new ArrayList(keyList.length + 10); for (KeyValue kv : keyList) { @@ -56,10 +55,10 @@ public class MapStatisticsCallerMapper implements RowMapper LinkStatistics statistics = new LinkStatistics(callerApplication, calleeApplication); statistics.addSample(calleeHost, calleeApplication.getServiceTypeCode(), (isError) ? (short) -1 : histogramSlot, requestCount); - stat.add(statistics); + linkStatisticsList.add(statistics); } - return stat; + return linkStatisticsList; } private Application readCallerApplication(byte[] qualifier) {