org.jminor.common.db
Class Databases.DatabaseStatistics

java.lang.Object
  extended by org.jminor.common.db.Databases.DatabaseStatistics
All Implemented Interfaces:
Serializable, Database.Statistics
Enclosing class:
Databases

public static final class Databases.DatabaseStatistics
extends Object
implements Database.Statistics, Serializable

A default DatabaseStatistics implementation.

See Also:
Serialized Form

Method Summary
 int getDeletesPerSecond()
          
 int getInsertsPerSecond()
          
 int getQueriesPerSecond()
          
 int getSelectsPerSecond()
          
 long getTimestamp()
          
 int getUpdatesPerSecond()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getQueriesPerSecond

public int getQueriesPerSecond()

Specified by:
getQueriesPerSecond in interface Database.Statistics
Returns:
the number of queries being run per second

getDeletesPerSecond

public int getDeletesPerSecond()

Specified by:
getDeletesPerSecond in interface Database.Statistics
Returns:
the number of delete queries being run per second

getInsertsPerSecond

public int getInsertsPerSecond()

Specified by:
getInsertsPerSecond in interface Database.Statistics
Returns:
the number of insert queries being run per second

getSelectsPerSecond

public int getSelectsPerSecond()

Specified by:
getSelectsPerSecond in interface Database.Statistics
Returns:
the number of select queries being run per second

getUpdatesPerSecond

public int getUpdatesPerSecond()

Specified by:
getUpdatesPerSecond in interface Database.Statistics
Returns:
the number of update queries being run per second

getTimestamp

public long getTimestamp()

Specified by:
getTimestamp in interface Database.Statistics
Returns:
the timestamp of these statistics