org.datanucleus.management.runtime
Class QueryRuntime

java.lang.Object
  extended by org.datanucleus.management.runtime.QueryRuntime
All Implemented Interfaces:
QueryRuntimeMBean

public class QueryRuntime
extends java.lang.Object
implements QueryRuntimeMBean

Query runtime statistics


Constructor Summary
QueryRuntime()
           
 
Method Summary
 long getQueryActiveTotalCount()
          The total number of queries that are executing
 long getQueryErrorTotalCount()
          The total number of queries that failed executing
 long getQueryExecutionTimeAverage()
          Simple Moving Average execution time of transactions
 long getQueryExecutionTimeHigh()
          Highest execution time
 long getQueryExecutionTimeLow()
          Lowest execution time
 long getQueryExecutionTotalCount()
          The total number of queries executed
 long getQueryExecutionTotalTime()
          execution total time
 void queryBegin()
           
 void queryExecuted(long executionTime)
           
 void queryExecutedWithError()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryRuntime

public QueryRuntime()
Method Detail

getQueryActiveTotalCount

public long getQueryActiveTotalCount()
The total number of queries that are executing

Specified by:
getQueryActiveTotalCount in interface QueryRuntimeMBean
Returns:
the total

getQueryErrorTotalCount

public long getQueryErrorTotalCount()
The total number of queries that failed executing

Specified by:
getQueryErrorTotalCount in interface QueryRuntimeMBean
Returns:
the total

getQueryExecutionTotalCount

public long getQueryExecutionTotalCount()
The total number of queries executed

Specified by:
getQueryExecutionTotalCount in interface QueryRuntimeMBean
Returns:
the total

getQueryExecutionTimeLow

public long getQueryExecutionTimeLow()
Lowest execution time

Specified by:
getQueryExecutionTimeLow in interface QueryRuntimeMBean
Returns:
Lowest execution time in milleseconds

getQueryExecutionTimeHigh

public long getQueryExecutionTimeHigh()
Highest execution time

Specified by:
getQueryExecutionTimeHigh in interface QueryRuntimeMBean
Returns:
Highest execution time in milleseconds

getQueryExecutionTotalTime

public long getQueryExecutionTotalTime()
execution total time

Specified by:
getQueryExecutionTotalTime in interface QueryRuntimeMBean
Returns:
execution total time in milleseconds

getQueryExecutionTimeAverage

public long getQueryExecutionTimeAverage()
Simple Moving Average execution time of transactions

Specified by:
getQueryExecutionTimeAverage in interface QueryRuntimeMBean
Returns:
Average execution time of transactions in milleseconds

queryBegin

public void queryBegin()

queryExecutedWithError

public void queryExecutedWithError()

queryExecuted

public void queryExecuted(long executionTime)


Copyright © 2011. All Rights Reserved.