From 7aab481ed760ec6b88d050669c08c2296ffb0d22 Mon Sep 17 00:00:00 2001 From: Woonduk Kang Date: Wed, 17 Apr 2013 07:06:01 +0000 Subject: [PATCH] =?UTF-8?q?[=EA=B0=95=EC=9A=B4=EB=8D=95]=20[LUCYSUS-1744]?= =?UTF-8?q?=20=EC=9D=BC=EB=B6=80=20=EB=A1=9C=EA=B7=B8=EC=9D=98=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=EB=82=B4=EC=9A=A9=EC=9D=84=20PintPoint=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=ED=95=A8.?= 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-profiler-bootstrap/trunk@1483 84d0f5b1-2673-498c-a247-62c4ff18d310 --- src/main/java/com/profiler/ProductInfo.java | 2 +- .../java/com/profiler/bootstrap/TomcatBootStrap.java | 6 ++---- .../java/com/profiler/config/ProfilerConstant.java | 10 +++------- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/profiler/ProductInfo.java b/src/main/java/com/profiler/ProductInfo.java index 1ddb08da9..9707aca87 100644 --- a/src/main/java/com/profiler/ProductInfo.java +++ b/src/main/java/com/profiler/ProductInfo.java @@ -5,5 +5,5 @@ package com.profiler; */ public final class ProductInfo { public static final String NAME = "pinpoint"; - public static final String NAME_CAMEL = "PinPoint"; + public static final String CAMEL_NAME = "PinPoint"; } diff --git a/src/main/java/com/profiler/bootstrap/TomcatBootStrap.java b/src/main/java/com/profiler/bootstrap/TomcatBootStrap.java index de5ffb3ba..5bddd9ae1 100644 --- a/src/main/java/com/profiler/bootstrap/TomcatBootStrap.java +++ b/src/main/java/com/profiler/bootstrap/TomcatBootStrap.java @@ -2,8 +2,6 @@ package com.profiler.bootstrap; import com.profiler.ProductInfo; import com.profiler.config.ProfilerConfig; -import com.profiler.logging.LoggerBinder; -import com.profiler.logging.LoggerFactory; import java.lang.instrument.Instrumentation; import java.net.URL; @@ -24,7 +22,7 @@ public class TomcatBootStrap { public static void premain(String agentArgs, Instrumentation instrumentation) { if (agentArgs != null) { - logger.info(ProductInfo.NAME_CAMEL + " agentArgs:" + agentArgs); + logger.info(ProductInfo.CAMEL_NAME + " agentArgs:" + agentArgs); } if (logger.isLoggable(Level.FINE)) { dumpSystemProperties(); @@ -59,7 +57,7 @@ public class TomcatBootStrap { agentClassLoader.boot(agentArgs, instrumentation, profilerConfig); } catch (Exception e) { - logger.log(Level.SEVERE, ProductInfo.NAME_CAMEL + " start fail. Caused:" + e.getMessage(), e); + logger.log(Level.SEVERE, ProductInfo.CAMEL_NAME + " start fail. Caused:" + e.getMessage(), e); } } diff --git a/src/main/java/com/profiler/config/ProfilerConstant.java b/src/main/java/com/profiler/config/ProfilerConstant.java index a92f5e451..39f0b8ee8 100644 --- a/src/main/java/com/profiler/config/ProfilerConstant.java +++ b/src/main/java/com/profiler/config/ProfilerConstant.java @@ -4,26 +4,22 @@ import java.text.DateFormat; import java.text.SimpleDateFormat; public class ProfilerConstant { - public final static DateFormat DATE_FORMAT_YMD_HMS = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss"); - public final static DateFormat DATE_FORMAT_HMS_MS = new SimpleDateFormat("HH:mm:ss,SSS"); - public static final long DATA_FETCH_INTERVAL = 2000; public static final int DATA_TYPE_REQUEST = 1; public static final int DATA_TYPE_RESPONSE = 2; public static final int DATA_TYPE_UNCAUGHT_EXCEPTION = 11; - public static final String CLASS_NAME_REQUEST_THRIFT_DTO = "RequestThriftDTO"; + public static final int REQ_DATA_TYPE_DB_GET_CONNECTION = 1; public static final int REQ_DATA_TYPE_DB_CREATE_STATEMENT = 11; - public static final int REQ_DATA_TYPE_DB_GET_PREPARED_STATEMENT = 12; + public static final int REQ_DATA_TYPE_DB_QUERY = 21; public static final int REQ_DATA_TYPE_DB_EXECUTE_QUERY = 31; - public static final int REQ_DATA_TYPE_DB_EXECUTE_UPDATE = 32; public static final int REQ_DATA_TYPE_DB_FETCH = 41; - public static final int REQ_DATA_TYPE_DB_RESULTSET_CLOSE = 42; + public static final int REQ_DATA_TYPE_DB_PREPARED_STATEMENT_PARAM = 51; public static final int REQ_DATA_TYPE_DB_CLOSE_CONNECTION = 99; }