org.terracotta.modules.hibernatecache.presentation
Class QueryStats

java.lang.Object
  extended by org.terracotta.modules.hibernatecache.presentation.QueryStats
All Implemented Interfaces:
Serializable

public class QueryStats
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  long cacheHitCount
           
protected  long cacheMissCount
           
protected  long cachePutCount
           
protected  long executionAvgTime
           
protected  long executionCount
           
protected  long executionMaxTime
           
protected  long executionMinTime
           
protected  long executionRowCount
           
protected  String query
           
 
Constructor Summary
QueryStats(CompositeData cData)
           
QueryStats(String name)
           
QueryStats(String name, QueryStatistics src)
           
 
Method Summary
 void add(QueryStats stats)
           
static QueryStats[] fromTabularData(TabularData tabularData)
           
 long getCacheHitCount()
           
 long getCacheMissCount()
           
 long getCachePutCount()
           
 long getExecutionAvgTime()
           
 long getExecutionCount()
           
 long getExecutionMaxTime()
           
 long getExecutionMinTime()
           
 long getExecutionRowCount()
           
 String getQuery()
           
static TabularData newTabularDataInstance()
           
 CompositeData toCompositeData()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

query

protected final String query

cacheHitCount

protected long cacheHitCount

cacheMissCount

protected long cacheMissCount

cachePutCount

protected long cachePutCount

executionCount

protected long executionCount

executionRowCount

protected long executionRowCount

executionAvgTime

protected long executionAvgTime

executionMaxTime

protected long executionMaxTime

executionMinTime

protected long executionMinTime
Constructor Detail

QueryStats

public QueryStats(String name)

QueryStats

public QueryStats(String name,
                  QueryStatistics src)

QueryStats

public QueryStats(CompositeData cData)
Method Detail

add

public void add(QueryStats stats)

toString

public String toString()
Overrides:
toString in class Object

getQuery

public String getQuery()

getCacheHitCount

public long getCacheHitCount()

getCacheMissCount

public long getCacheMissCount()

getCachePutCount

public long getCachePutCount()

getExecutionCount

public long getExecutionCount()

getExecutionRowCount

public long getExecutionRowCount()

getExecutionAvgTime

public long getExecutionAvgTime()

getExecutionMaxTime

public long getExecutionMaxTime()

getExecutionMinTime

public long getExecutionMinTime()

toCompositeData

public CompositeData toCompositeData()

newTabularDataInstance

public static TabularData newTabularDataInstance()

fromTabularData

public static QueryStats[] fromTabularData(TabularData tabularData)


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.