Class QueryStats
- java.lang.Object
-
- net.sf.ehcache.hibernate.management.impl.QueryStats
-
- All Implemented Interfaces:
java.io.Serializable
public class QueryStats extends java.lang.Object implements java.io.Serializable- Author:
- gkeim
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected longcacheHitCountcacheHitCountprotected longcacheMissCountcacheMissCountprotected longcachePutCountcachePutCountprotected longexecutionAvgTimeexecutionAvgTimeprotected longexecutionCountexecutionCountprotected longexecutionMaxTimeexecutionMaxTimeprotected longexecutionMinTimeexecutionMinTimeprotected longexecutionRowCountexecutionRowCountprotected java.lang.Stringqueryquery
-
Constructor Summary
Constructors Constructor Description QueryStats(java.lang.String name)QueryStats(java.lang.String name, org.hibernate.stat.QueryStatistics src)QueryStats(javax.management.openmbean.CompositeData cData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(QueryStats stats)static QueryStats[]fromTabularData(javax.management.openmbean.TabularData tabularData)fromTabularDatalonggetCacheHitCount()getCacheHitCountlonggetCacheMissCount()getCacheMissCountlonggetCachePutCount()getCachePutCountlonggetExecutionAvgTime()getExecutionAvgTimelonggetExecutionCount()getExecutionCountlonggetExecutionMaxTime()getExecutionMaxTimelonggetExecutionMinTime()getExecutionMinTimelonggetExecutionRowCount()getExecutionRowCountjava.lang.StringgetQuery()getQuerystatic javax.management.openmbean.TabularDatanewTabularDataInstance()newTabularDataInstancejavax.management.openmbean.CompositeDatatoCompositeData()toCompositeDatajava.lang.StringtoString()toString
-
-
-
Field Detail
-
query
protected final java.lang.String query
query
-
cacheHitCount
protected long cacheHitCount
cacheHitCount
-
cacheMissCount
protected long cacheMissCount
cacheMissCount
-
cachePutCount
protected long cachePutCount
cachePutCount
-
executionCount
protected long executionCount
executionCount
-
executionRowCount
protected long executionRowCount
executionRowCount
-
executionAvgTime
protected long executionAvgTime
executionAvgTime
-
executionMaxTime
protected long executionMaxTime
executionMaxTime
-
executionMinTime
protected long executionMinTime
executionMinTime
-
-
Constructor Detail
-
QueryStats
public QueryStats(java.lang.String name)
- Parameters:
name-
-
QueryStats
public QueryStats(java.lang.String name, org.hibernate.stat.QueryStatistics src)- Parameters:
name-src-
-
QueryStats
public QueryStats(javax.management.openmbean.CompositeData cData)
- Parameters:
cData-
-
-
Method Detail
-
add
public void add(QueryStats stats)
- Parameters:
stats-
-
toString
public java.lang.String toString()
toString- Overrides:
toStringin classjava.lang.Object
-
getQuery
public java.lang.String getQuery()
getQuery
-
getCacheHitCount
public long getCacheHitCount()
getCacheHitCount
-
getCacheMissCount
public long getCacheMissCount()
getCacheMissCount
-
getCachePutCount
public long getCachePutCount()
getCachePutCount
-
getExecutionCount
public long getExecutionCount()
getExecutionCount
-
getExecutionRowCount
public long getExecutionRowCount()
getExecutionRowCount
-
getExecutionAvgTime
public long getExecutionAvgTime()
getExecutionAvgTime
-
getExecutionMaxTime
public long getExecutionMaxTime()
getExecutionMaxTime
-
getExecutionMinTime
public long getExecutionMinTime()
getExecutionMinTime
-
toCompositeData
public javax.management.openmbean.CompositeData toCompositeData()
toCompositeData
-
newTabularDataInstance
public static javax.management.openmbean.TabularData newTabularDataInstance()
newTabularDataInstance
-
fromTabularData
public static QueryStats[] fromTabularData(javax.management.openmbean.TabularData tabularData)
fromTabularData
-
-