Class SlowQueryReport.QueryStats
- java.lang.Object
-
- org.apache.tomcat.jdbc.pool.interceptor.SlowQueryReport.QueryStats
-
- Enclosing class:
- SlowQueryReport
public static class SlowQueryReport.QueryStats extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description QueryStats(java.lang.String query)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long invocationTime, long now)booleanequals(java.lang.Object other)voidfailure(long invocationTime, long now)javax.management.openmbean.CompositeDataSupportgetCompositeData(javax.management.openmbean.CompositeType type)static java.lang.String[]getFieldDescriptions()static java.lang.String[]getFieldNames()static javax.management.openmbean.OpenType<?>[]getFieldTypes()longgetMaxInvocationDate()longgetMaxInvocationTime()longgetMinInvocationDate()longgetMinInvocationTime()intgetNrOfInvocations()java.lang.StringgetQuery()longgetTotalInvocationTime()inthashCode()booleanisOlderThan(SlowQueryReport.QueryStats other)voidprepare(long invocationTime)java.lang.StringtoString()
-
-
-
Method Detail
-
getFieldNames
public static java.lang.String[] getFieldNames()
-
getFieldDescriptions
public static java.lang.String[] getFieldDescriptions()
-
getFieldTypes
public static javax.management.openmbean.OpenType<?>[] getFieldTypes()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getCompositeData
public javax.management.openmbean.CompositeDataSupport getCompositeData(javax.management.openmbean.CompositeType type) throws javax.management.openmbean.OpenDataException- Throws:
javax.management.openmbean.OpenDataException
-
prepare
public void prepare(long invocationTime)
-
add
public void add(long invocationTime, long now)
-
failure
public void failure(long invocationTime, long now)
-
getQuery
public java.lang.String getQuery()
-
getNrOfInvocations
public int getNrOfInvocations()
-
getMaxInvocationTime
public long getMaxInvocationTime()
-
getMaxInvocationDate
public long getMaxInvocationDate()
-
getMinInvocationTime
public long getMinInvocationTime()
-
getMinInvocationDate
public long getMinInvocationDate()
-
getTotalInvocationTime
public long getTotalInvocationTime()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
isOlderThan
public boolean isOlderThan(SlowQueryReport.QueryStats other)
-
-