|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.lang.Thread
patterntesting.runtime.monitor.ProfileStatistic
patterntesting.runtime.monitor.db.SqlStatistic
public class SqlStatistic
This class monitors and measures SQL statements. To be able to distinguish
them from methods profiling it is a separate class derived from
ProfileStatistic.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class patterntesting.runtime.monitor.ProfileStatistic |
|---|
jamonAvailable |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
|---|---|
static void |
addAsShutdownHook()
You can register the instance as shutdown hook. |
static SqlStatistic |
getInstance()
Gets the single instance of SqlStatistic. |
void |
reset()
To start a new statistic call this method. |
static ProfileMonitor |
start(String sql)
Start. |
static void |
stop(ProfileMonitor mon,
String command)
Stops the given 'mon' and logs the given command with the needed time if debug is enabled. |
static void |
stop(ProfileMonitor mon,
String command,
Object returnValue)
Stops the given 'mon' and logs the given command with the needed time if debug is enabled. |
| Methods inherited from class patterntesting.runtime.monitor.ProfileStatistic |
|---|
addAsShutdownHook, dumpStatistic, dumpStatisticTo, getMaxAvg, getMaxAvgLabel, getMaxAvgStatistic, getMaxHits, getMaxHitsLabel, getMaxHitsStatistic, getMaxMax, getMaxMaxLabel, getMaxMaxStatistic, getMaxTotal, getMaxTotalLabel, getMaxTotalStatistic, getMBeanName, getProfileMonitor, getProfileMonitor, getProfileMonitor, getRootMonitor, getSortedMonitors, getStatistics, init, logStatistic, resetRootMonitor, run, start, startProfileMonitorFor, startProfileMonitorFor, toString |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface patterntesting.runtime.monitor.ProfileStatisticMBean |
|---|
dumpStatistic, getMaxAvg, getMaxAvgLabel, getMaxAvgStatistic, getMaxHits, getMaxHitsLabel, getMaxHitsStatistic, getMaxMax, getMaxMaxLabel, getMaxMaxStatistic, getMaxTotal, getMaxTotalLabel, getMaxTotalStatistic, getStatistics, logStatistic |
| Method Detail |
|---|
public static SqlStatistic getInstance()
public void reset()
ProfileStatistic.reset() old ProfileMonitors will be not
kept.
reset in interface ProfileStatisticMBeanreset in class ProfileStatisticpublic static ProfileMonitor start(String sql)
sql - the sql
public static void stop(ProfileMonitor mon,
String command)
mon - the moncommand - the command
public static void stop(ProfileMonitor mon,
String command,
Object returnValue)
mon - the moncommand - the commandreturnValue - the return valuepublic static void addAsShutdownHook()
ProfileStatistic.logStatistic(),
ProfileStatistic.dumpStatistic()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||