Class JdbcStatisticsPlugin

java.lang.Object
org.jboss.jca.adapters.jdbc.statistics.JdbcStatisticsPlugin
All Implemented Interfaces:
Serializable, StatisticsPlugin

public class JdbcStatisticsPlugin extends Object implements StatisticsPlugin
JDBC statistics.
Author:
Jesper Pedersen
See Also:
  • Constructor Details

    • JdbcStatisticsPlugin

      public JdbcStatisticsPlugin()
      Constructor
  • Method Details

    • getNames

      public Set<String> getNames()
      Specified by:
      getNames in interface StatisticsPlugin
    • getType

      public Class getType(String name)
      Specified by:
      getType in interface StatisticsPlugin
    • getDescription

      public String getDescription(String name)
      Specified by:
      getDescription in interface StatisticsPlugin
    • getDescription

      public String getDescription(String name, Locale locale)
      Specified by:
      getDescription in interface StatisticsPlugin
    • getValue

      public Object getValue(String name)
      Specified by:
      getValue in interface StatisticsPlugin
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface StatisticsPlugin
    • setEnabled

      public void setEnabled(boolean v)
      Specified by:
      setEnabled in interface StatisticsPlugin
    • registerPreparedStatementCache

      public void registerPreparedStatementCache(PreparedStatementCache v)
      Register prepared statement cache
      Parameters:
      v - The cache
    • deregisterPreparedStatementCache

      public void deregisterPreparedStatementCache(PreparedStatementCache v)
      Deregister prepared statement cache
      Parameters:
      v - The cache
    • getPreparedStatementCacheAccessCount

      public long getPreparedStatementCacheAccessCount()
      Get the access count for the prepated statement cache
      Returns:
      The value
    • deltaPreparedStatementCacheAccessCount

      public void deltaPreparedStatementCacheAccessCount()
      Delta the access count for the prepated statement cache
    • getPreparedStatementCacheAddCount

      public long getPreparedStatementCacheAddCount()
      Get the add count for the prepated statement cache
      Returns:
      The value
    • deltaPreparedStatementCacheAddCount

      public void deltaPreparedStatementCacheAddCount()
      Delta the add count for the prepated statement cache
    • getPreparedStatementCacheCurrentSize

      public int getPreparedStatementCacheCurrentSize()
      Get the current size for the prepated statement cache
      Returns:
      The value
    • getPreparedStatementCacheDeleteCount

      public long getPreparedStatementCacheDeleteCount()
      Get the delete count for the prepated statement cache
      Returns:
      The value
    • deltaPreparedStatementCacheDeleteCount

      public void deltaPreparedStatementCacheDeleteCount()
      Delta the delete count for the prepated statement cache
    • getPreparedStatementCacheHitCount

      public long getPreparedStatementCacheHitCount()
      Get the hit count for the prepated statement cache
      Returns:
      The value
    • deltaPreparedStatementCacheHitCount

      public void deltaPreparedStatementCacheHitCount()
      Delta the hit count for the prepated statement cache
    • getPreparedStatementCacheMissCount

      public long getPreparedStatementCacheMissCount()
      Get the miss count for the prepated statement cache
      Returns:
      The value
    • deltaPreparedStatementCacheMissCount

      public void deltaPreparedStatementCacheMissCount()
      Delta the miss count for the prepated statement cache
    • clear

      public void clear()
      Specified by:
      clear in interface StatisticsPlugin