Package fish.payara.jdbc.stats
Class SlowSqlTrace
- java.lang.Object
-
- com.sun.gjc.util.SQLTrace
-
- fish.payara.jdbc.stats.SlowSqlTrace
-
public class SlowSqlTrace extends SQLTrace
Extends the SQLTrace class to also store the slowest SQL execution times.- Author:
- Andrew Pielage
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<SlowSqlTrace>
SlowSqlTraceSlowestExecutionComparator
-
Fields inherited from class com.sun.gjc.util.SQLTrace
SQLTraceFrequencyComparator
-
-
Constructor Summary
Constructors Constructor Description SlowSqlTrace(String query, int numExecutions, long time, long executionTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSlowestExecutionTime()
Gets the slowest execution time for this SQL Tracevoid
setSlowestExecutionTime(long slowestExecutionTime)
Sets the slowest execution time for this SQL trace-
Methods inherited from class com.sun.gjc.util.SQLTrace
getLastUsageTime, getNumExecutions, getQueryName, setLastUsageTime, setNumExecutions, setQueryName
-
-
-
-
Field Detail
-
SlowSqlTraceSlowestExecutionComparator
public static Comparator<SlowSqlTrace> SlowSqlTraceSlowestExecutionComparator
-
-
Constructor Detail
-
SlowSqlTrace
public SlowSqlTrace(String query, int numExecutions, long time, long executionTime)
-
-
Method Detail
-
getSlowestExecutionTime
public long getSlowestExecutionTime()
Gets the slowest execution time for this SQL Trace- Returns:
- The slowest execution time
-
setSlowestExecutionTime
public void setSlowestExecutionTime(long slowestExecutionTime)
Sets the slowest execution time for this SQL trace- Parameters:
slowestExecutionTime
- The execution time to set
-
-