com.orindasoft.pub
Interface StatsInterface

All Known Implementing Classes:
QueryStatement

public interface StatsInterface

An interface for tracking and accessing basic performance information. Any class that implments this needs to keep track of the following:

Parses - Turning a SQL statement from a string into something the database server can use

Executions - Executing the statement and either retrieving or changing data

Releases - Handing back the database connection to the calling class.

Errors - Error conditions such as prepared statements being unusable.

See StatsInterface
(c) Copyright 2003 - 2012 Orinda Software Ltd

Version:
6.0
Author:
Orinda Software

Method Summary
 long getErrors()
          Get Errors
 long getExecutions()
          Get executions
 long getExecutionTime()
          Get execution time
 long getParses()
          Get Parses
 long getParseTime()
          Get Parse time
 long getReleases()
          Get Releases
 long getRetrievalTime()
          Get Retrieval time
 void resetStatsCounters()
          Reset all counters Set the counters for Parses, Executions and Releases to zero.
 

Method Detail

resetStatsCounters

void resetStatsCounters()
Reset all counters Set the counters for Parses, Executions and Releases to zero.


getParses

long getParses()
Get Parses

Returns:
long The number of times this statement was parsed.

getParseTime

long getParseTime()
Get Parse time

Returns:
long The length of time this statement has spent parsing in milliseconds

getExecutions

long getExecutions()
Get executions

Returns:
long The number of times this statement was executed.

getExecutionTime

long getExecutionTime()
Get execution time

Returns:
long The length of time this statement has spent executing in milliseconds

getRetrievalTime

long getRetrievalTime()
Get Retrieval time

Returns:
long The length of time this statement has spent executing in milliseconds

getReleases

long getReleases()
Get Releases

Returns:
long The number of times this statement was released.

getErrors

long getErrors()
Get Errors

Returns:
long The number of times an error was generated.


Copyright © Orinda Software Ltd 2012Logo