mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-17 00:36:02 +10:00
[강운덕] [WEB-49] log레벨 조정
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@3340 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -33,10 +33,8 @@ public class MapStatisticsCalleeMapper implements RowMapper<List<LinkStatistics>
|
||||
final KeyValue[] keyList = result.raw();
|
||||
|
||||
// key is destApplicationName.
|
||||
final List<LinkStatistics> stat = new ArrayList<LinkStatistics>(keyList.length + 10);
|
||||
final List<LinkStatistics> linkStatisticsList = new ArrayList<LinkStatistics>(keyList.length + 10);
|
||||
|
||||
// key is destApplicationName
|
||||
// Map<String, Set<String>> callerAppHostMap = new HashMap<String, Set<String>>();
|
||||
|
||||
for (KeyValue kv : keyList) {
|
||||
|
||||
@@ -54,13 +52,13 @@ public class MapStatisticsCalleeMapper implements RowMapper<List<LinkStatistics>
|
||||
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<List<LinkStatistics>
|
||||
// entry.getValue().addToHosts(callerAppHostMap.get(entry.getKey()));
|
||||
// }
|
||||
|
||||
return stat;
|
||||
return linkStatisticsList;
|
||||
}
|
||||
|
||||
private Application readCalleeApplication(byte[] qualifier) {
|
||||
|
||||
@@ -31,8 +31,7 @@ public class MapStatisticsCallerMapper implements RowMapper<List<LinkStatistics>
|
||||
}
|
||||
final KeyValue[] keyList = result.raw();
|
||||
|
||||
final List<LinkStatistics> stat = new ArrayList<LinkStatistics>(keyList.length + 10);
|
||||
|
||||
final List<LinkStatistics> linkStatisticsList = new ArrayList<LinkStatistics>(keyList.length + 10);
|
||||
|
||||
for (KeyValue kv : keyList) {
|
||||
|
||||
@@ -56,10 +55,10 @@ public class MapStatisticsCallerMapper implements RowMapper<List<LinkStatistics>
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user