wt.fc.profiling
Class SQLExecutionTimeProfilingLogger

java.lang.Object
  extended bywt.fc.profiling.AbstractProfilingLogger
      extended bywt.fc.profiling.SQLExecutionTimeProfilingLogger
All Implemented Interfaces:
TraceTimingLogger

public class SQLExecutionTimeProfilingLogger
extends AbstractProfilingLogger

This class implements a logger that reports SQL execution time to the profiling services.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private  BeginTraceTimingEntry currentEntry
           
static boolean DEBUG
           
private static int DEFAULT_LEVEL
           
private static DebugWriter LOG
           
private static String RESOURCE
           
private static String SQL_ENTRY_PREFIX
           
private static String SQL_EXECUTE_NAME
           
 
Fields inherited from class wt.fc.profiling.AbstractProfilingLogger
PROFILING_KEY
 
Fields inherited from interface wt.util.TraceTimingLogger
PROPERTY_MAP
 
Constructor Summary
SQLExecutionTimeProfilingLogger()
           
 
Method Summary
 TraceTimingEntry addBeginEntry(String a_className, String a_name, long a_timeMillis, Object a_info)
          Adds a begin entry to the log.
 TraceTimingEntry addBreakEntry(String a_className, String a_name, long a_timeMillis, Object a_info, int a_level)
          Adds an break-in-flow, end entry to the log.
 TraceTimingEntry addEndEntry(String a_className, String a_name, long a_timeMillis, Object a_info)
          Adds an end entry to the log.
 
Methods inherited from class wt.fc.profiling.AbstractProfilingLogger
getProfilingKey, getPropertyMap, setPropertyMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG

currentEntry

private transient BeginTraceTimingEntry currentEntry

DEFAULT_LEVEL

private static final int DEFAULT_LEVEL
See Also:
Constant Field Values

SQL_ENTRY_PREFIX

private static final String SQL_ENTRY_PREFIX
See Also:
Constant Field Values

SQL_EXECUTE_NAME

private static final String SQL_EXECUTE_NAME
See Also:
Constant Field Values
Constructor Detail

SQLExecutionTimeProfilingLogger

public SQLExecutionTimeProfilingLogger()
Method Detail

addBeginEntry

public TraceTimingEntry addBeginEntry(String a_className,
                                      String a_name,
                                      long a_timeMillis,
                                      Object a_info)
Adds a begin entry to the log.

Supported API: false

Specified by:
addBeginEntry in interface TraceTimingLogger
Specified by:
addBeginEntry in class AbstractProfilingLogger
Parameters:
a_className - The name of the class associated with this entry.
a_name - The name associated with this entry.
a_timeMillis - Time in milliseconds. If less than zero, then the current system time is used.
a_info - Informative message associated with this entry.
Returns:
TraceTimingEntry

addEndEntry

public TraceTimingEntry addEndEntry(String a_className,
                                    String a_name,
                                    long a_timeMillis,
                                    Object a_info)
Adds an end entry to the log.

Supported API: false

Specified by:
addEndEntry in interface TraceTimingLogger
Specified by:
addEndEntry in class AbstractProfilingLogger
Parameters:
a_className - The name of the class associated with this entry.
a_name - The name associated with this entry.
a_timeMillis - Time in milliseconds. If less than zero, then the current system time is used.
a_info - Informative message associated with this entry.
Returns:
TraceTimingEntry

addBreakEntry

public TraceTimingEntry addBreakEntry(String a_className,
                                      String a_name,
                                      long a_timeMillis,
                                      Object a_info,
                                      int a_level)
Adds an break-in-flow, end entry to the log.

Supported API: false

Specified by:
addBreakEntry in interface TraceTimingLogger
Specified by:
addBreakEntry in class AbstractProfilingLogger
Parameters:
a_className - The name of the class associated with this entry.
a_name - The name associated with this entry.
a_timeMillis - Time in milliseconds. If less than zero, then the current system time is used.
a_info - Informative message associated with this entry.
a_level - Indicates the level of the corresponding begin entry.
Returns:
TraceTimingEntry