Package org.apache.openjpa.kernel
Class QueryStatistics.None<T>
java.lang.Object
org.apache.openjpa.kernel.QueryStatistics.None<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Serializable
,QueryStatistics<T>
- Enclosing interface:
- QueryStatistics<T>
A do-nothing implementation.
- Author:
- Pinaki Poddar
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.openjpa.kernel.QueryStatistics
QueryStatistics.Default<T>, QueryStatistics.None<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all statistics accumulated since start.void
dump
(PrintStream out) Dumps on the given output stream.long
Gets number of total query evictions since last reset.long
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
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
Gets number of total query evictions since start.long
Gets number of total query execution since start.long
getTotalExecutionCount
(T query) Gets number of executions for the given query since start.long
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.keys()
Gets all the identifier keys for the cached queries.void
recordEviction
(T query) Record that the given query has been evicted.void
recordExecution
(T query) Record that the given query has been executed.void
reset()
Clears all statistics accumulated since last reset.since()
Gets the time of last reset.start()
Gets the time of start.
-
Constructor Details
-
None
public None()
-
-
Method Details
-
clear
public void clear()Description copied from interface:QueryStatistics
Clears all statistics accumulated since start.- Specified by:
clear
in interfaceQueryStatistics<T>
-
dump
Description copied from interface:QueryStatistics
Dumps on the given output stream.- Specified by:
dump
in interfaceQueryStatistics<T>
-
getExecutionCount
public long getExecutionCount()Description copied from interface:QueryStatistics
Gets number of total query execution since last reset.- Specified by:
getExecutionCount
in interfaceQueryStatistics<T>
-
getExecutionCount
Description copied from interface:QueryStatistics
Gets number of executions for the given query since last reset.- Specified by:
getExecutionCount
in interfaceQueryStatistics<T>
-
getHitCount
public long getHitCount()Description copied from interface:QueryStatistics
Gets number of total query execution that are cached since last reset.- Specified by:
getHitCount
in interfaceQueryStatistics<T>
-
getHitCount
Description copied from interface:QueryStatistics
Gets number of executions for the given query that are cached since last reset.- Specified by:
getHitCount
in interfaceQueryStatistics<T>
-
getTotalExecutionCount
public long getTotalExecutionCount()Description copied from interface:QueryStatistics
Gets number of total query execution since start.- Specified by:
getTotalExecutionCount
in interfaceQueryStatistics<T>
-
getTotalExecutionCount
Description copied from interface:QueryStatistics
Gets number of executions for the given query since start.- Specified by:
getTotalExecutionCount
in interfaceQueryStatistics<T>
-
getTotalHitCount
public long getTotalHitCount()Description copied from interface:QueryStatistics
Gets number of total query execution that are cached since start.- Specified by:
getTotalHitCount
in interfaceQueryStatistics<T>
-
getTotalHitCount
Description copied from interface:QueryStatistics
Gets number of executions for the given query that are cached since start.- Specified by:
getTotalHitCount
in interfaceQueryStatistics<T>
-
getEvictionCount
public long getEvictionCount()Description copied from interface:QueryStatistics
Gets number of total query evictions since last reset.- Specified by:
getEvictionCount
in interfaceQueryStatistics<T>
-
getTotalEvictionCount
public long getTotalEvictionCount()Description copied from interface:QueryStatistics
Gets number of total query evictions since start.- Specified by:
getTotalEvictionCount
in interfaceQueryStatistics<T>
-
keys
Description copied from interface:QueryStatistics
Gets all the identifier keys for the cached queries.- Specified by:
keys
in interfaceQueryStatistics<T>
-
recordExecution
Description copied from interface:QueryStatistics
Record that the given query has been executed.- Specified by:
recordExecution
in interfaceQueryStatistics<T>
-
reset
public void reset()Description copied from interface:QueryStatistics
Clears all statistics accumulated since last reset.- Specified by:
reset
in interfaceQueryStatistics<T>
-
since
Description copied from interface:QueryStatistics
Gets the time of last reset.- Specified by:
since
in interfaceQueryStatistics<T>
-
start
Description copied from interface:QueryStatistics
Gets the time of start.- Specified by:
start
in interfaceQueryStatistics<T>
-
recordEviction
Description copied from interface:QueryStatistics
Record that the given query has been evicted.- Specified by:
recordEviction
in interfaceQueryStatistics<T>
-