mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-17 16:56:15 +10:00
[강운덕] [PROFILER-17] 단순 코드 수정. final 추가
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@3724 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
+4
-4
@@ -36,7 +36,7 @@ public class DriverConnectInterceptor implements SimpleAroundInterceptor, ByteCo
|
||||
}
|
||||
scope.push();
|
||||
|
||||
Trace trace = traceContext.currentTraceObject();
|
||||
final Trace trace = traceContext.currentTraceObject();
|
||||
if (trace == null) {
|
||||
return;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ public class DriverConnectInterceptor implements SimpleAroundInterceptor, ByteCo
|
||||
// 여기서는 trace context인지 아닌지 확인하면 안된다. trace 대상 thread가 아닌곳에서 connection이 생성될수 있음.
|
||||
scope.pop();
|
||||
|
||||
boolean success = InterceptorUtils.isSuccess(result);
|
||||
final boolean success = InterceptorUtils.isSuccess(result);
|
||||
// 여기서는 trace context인지 아닌지 확인하면 안된다. trace 대상 thread가 아닌곳에서 connection이 생성될수 있음.
|
||||
final String driverUrl = (String) args[0];
|
||||
DatabaseInfo databaseInfo = createDatabaseInfo(driverUrl);
|
||||
@@ -62,7 +62,7 @@ public class DriverConnectInterceptor implements SimpleAroundInterceptor, ByteCo
|
||||
this.setUrl.invoke(result, databaseInfo);
|
||||
}
|
||||
|
||||
Trace trace = traceContext.currentTraceObject();
|
||||
final Trace trace = traceContext.currentTraceObject();
|
||||
if (trace == null) {
|
||||
return;
|
||||
}
|
||||
@@ -87,7 +87,7 @@ public class DriverConnectInterceptor implements SimpleAroundInterceptor, ByteCo
|
||||
if (url == null) {
|
||||
return UnKnownDatabaseInfo.INSTANCE;
|
||||
}
|
||||
DatabaseInfo databaseInfo = traceContext.parseJdbcUrl(url);
|
||||
final DatabaseInfo databaseInfo = traceContext.parseJdbcUrl(url);
|
||||
if (isDebug) {
|
||||
logger.debug("parse DatabaseInfo:{}", databaseInfo);
|
||||
}
|
||||
|
||||
+3
-3
@@ -36,7 +36,7 @@ public class PreparedStatementCreateInterceptor implements SimpleAroundIntercept
|
||||
logger.beforeInterceptor(target, args);
|
||||
}
|
||||
|
||||
Trace trace = traceContext.currentTraceObject();
|
||||
final Trace trace = traceContext.currentTraceObject();
|
||||
if (trace == null) {
|
||||
return;
|
||||
}
|
||||
@@ -60,7 +60,7 @@ public class PreparedStatementCreateInterceptor implements SimpleAroundIntercept
|
||||
logger.afterInterceptor(target, args, result);
|
||||
}
|
||||
|
||||
boolean success = InterceptorUtils.isSuccess(result);
|
||||
final boolean success = InterceptorUtils.isSuccess(result);
|
||||
ParsingResult parsingResult = null;
|
||||
if (success) {
|
||||
// preparedStatement의 생성이 성공하였을 경우만 PreparedStatement에 databaseInfo를 세팅해야 한다.
|
||||
@@ -81,7 +81,7 @@ public class PreparedStatementCreateInterceptor implements SimpleAroundIntercept
|
||||
}
|
||||
}
|
||||
|
||||
Trace trace = traceContext.currentTraceObject();
|
||||
final Trace trace = traceContext.currentTraceObject();
|
||||
if (trace == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user