|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.QueryStatistics.Default<T>
public static class QueryStatistics.Default<T>
A default implementation. Maintains statistics for only a fixed number of queries. Statistical counts are approximate and not exact (to keep thread synchorization overhead low).
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.openjpa.kernel.QueryStatistics |
---|
QueryStatistics.Default<T>, QueryStatistics.None<T> |
Constructor Summary | |
---|---|
QueryStatistics.Default()
|
Method Summary | |
---|---|
void |
clear()
Clears all statistics accumulated since start. |
void |
dump(PrintStream out)
Dumps on the given output stream. |
long |
getExecutionCount()
Gets number of total query execution since last reset. |
long |
getExecutionCount(T query)
Gets number of executions for the given query since last reset. |
long |
getHitCount()
Gets number of total query execution that are cached since last reset. |
long |
getHitCount(T query)
Gets number of executions for the given query that are cached since last reset. |
long |
getTotalExecutionCount()
Gets number of total query execution since start. |
long |
getTotalExecutionCount(T query)
Gets number of executions for the given query since start. |
long |
getTotalHitCount()
Gets number of total query execution that are cached since start. |
long |
getTotalHitCount(T query)
Gets number of executions for the given query that are cached since start. |
Set<T> |
keys()
Gets all the identifier keys for the cached queries. |
void |
recordExecution(T query)
Record that the given query has been executed. |
void |
reset()
Clears all statistics accumulated since last reset. |
Date |
since()
Gets the time of last reset. |
Date |
start()
Gets the time of start. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryStatistics.Default()
Method Detail |
---|
public Set<T> keys()
QueryStatistics
keys
in interface QueryStatistics<T>
public long getExecutionCount()
QueryStatistics
getExecutionCount
in interface QueryStatistics<T>
public long getTotalExecutionCount()
QueryStatistics
getTotalExecutionCount
in interface QueryStatistics<T>
public long getExecutionCount(T query)
QueryStatistics
getExecutionCount
in interface QueryStatistics<T>
public long getTotalExecutionCount(T query)
QueryStatistics
getTotalExecutionCount
in interface QueryStatistics<T>
public long getHitCount()
QueryStatistics
getHitCount
in interface QueryStatistics<T>
public long getTotalHitCount()
QueryStatistics
getTotalHitCount
in interface QueryStatistics<T>
public long getHitCount(T query)
QueryStatistics
getHitCount
in interface QueryStatistics<T>
public long getTotalHitCount(T query)
QueryStatistics
getTotalHitCount
in interface QueryStatistics<T>
public Date since()
QueryStatistics
since
in interface QueryStatistics<T>
public Date start()
QueryStatistics
start
in interface QueryStatistics<T>
public void reset()
QueryStatistics
reset
in interface QueryStatistics<T>
public void clear()
QueryStatistics
clear
in interface QueryStatistics<T>
public void recordExecution(T query)
QueryStatistics
recordExecution
in interface QueryStatistics<T>
public void dump(PrintStream out)
QueryStatistics
dump
in interface QueryStatistics<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |