public class QueryStats
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
cacheHitCount
cacheHitCount
|
protected long |
cacheMissCount
cacheMissCount
|
protected long |
cachePutCount
cachePutCount
|
protected long |
executionAvgTime
executionAvgTime
|
protected long |
executionCount
executionCount
|
protected long |
executionMaxTime
executionMaxTime
|
protected long |
executionMinTime
executionMinTime
|
protected long |
executionRowCount
executionRowCount
|
protected java.lang.String |
query
query
|
Constructor and Description |
---|
QueryStats(javax.management.openmbean.CompositeData cData)
Constructor
|
QueryStats(java.lang.String name)
Constructor
|
QueryStats(java.lang.String name,
QueryStatistics src)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(QueryStats stats)
Adds to the counter of this instance
|
static QueryStats[] |
fromTabularData(javax.management.openmbean.TabularData tabularData)
Reads an array of queryStats from TabularData
|
long |
getCacheHitCount()
The amount of hits for this query
|
long |
getCacheMissCount()
The amount of misses for this query
|
long |
getCachePutCount()
The amount of puts for this query
|
long |
getExecutionAvgTime()
The avg time to execute this query
|
long |
getExecutionCount()
The amount of execution of this query
|
long |
getExecutionMaxTime()
The max time to execute this query
|
long |
getExecutionMinTime()
The minimum time to execute this query
|
long |
getExecutionRowCount()
The amount of rows returned for this query
|
java.lang.String |
getQuery()
Accessor to the queryString
|
static javax.management.openmbean.TabularData |
newTabularDataInstance()
Creates a new TabularData
|
javax.management.openmbean.CompositeData |
toCompositeData()
Creates a CompositeData instance of this instance
|
java.lang.String |
toString() |
protected final java.lang.String query
protected long cacheHitCount
protected long cacheMissCount
protected long cachePutCount
protected long executionCount
protected long executionRowCount
protected long executionAvgTime
protected long executionMaxTime
protected long executionMinTime
public QueryStats(java.lang.String name)
name
- the query stringpublic QueryStats(java.lang.String name, QueryStatistics src)
name
- the query stringsrc
- the source of the stats to this querypublic QueryStats(javax.management.openmbean.CompositeData cData)
cData
- CompositeDate to construct an instance frompublic void add(QueryStats stats)
stats
- the counters to add to these onespublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getQuery()
public long getCacheHitCount()
public long getCacheMissCount()
public long getCachePutCount()
public long getExecutionCount()
public long getExecutionRowCount()
public long getExecutionAvgTime()
public long getExecutionMaxTime()
public long getExecutionMinTime()
public javax.management.openmbean.CompositeData toCompositeData()
public static javax.management.openmbean.TabularData newTabularDataInstance()
public static QueryStats[] fromTabularData(javax.management.openmbean.TabularData tabularData)
tabularData
- the tabularData with the CompositeData
of stats to extractCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.