org.jboss.jca.adapters.jdbc.statistics
Class JdbcStatisticsPlugin

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

public class JdbcStatisticsPlugin
extends Object
implements org.jboss.jca.core.spi.statistics.StatisticsPlugin

JDBC statistics.

Author:
Jesper Pedersen
See Also:
Serialized Form

Constructor Summary
JdbcStatisticsPlugin()
          Constructor
 
Method Summary
 void clear()
          
 void deltaPreparedStatementCacheAccessCount()
          Delta the access count for the prepated statement cache
 void deltaPreparedStatementCacheAddCount()
          Delta the add count for the prepated statement cache
 void deltaPreparedStatementCacheDeleteCount()
          Delta the delete count for the prepated statement cache
 void deltaPreparedStatementCacheHitCount()
          Delta the hit count for the prepated statement cache
 void deltaPreparedStatementCacheMissCount()
          Delta the miss count for the prepated statement cache
 void deregisterPreparedStatementCache(PreparedStatementCache v)
          Deregister prepared statement cache
 String getDescription(String name)
          
 String getDescription(String name, Locale locale)
          
 Set<String> getNames()
          
 long getPreparedStatementCacheAccessCount()
          Get the access count for the prepated statement cache
 long getPreparedStatementCacheAddCount()
          Get the add count for the prepated statement cache
 int getPreparedStatementCacheCurrentSize()
          Get the current size for the prepated statement cache
 long getPreparedStatementCacheDeleteCount()
          Get the delete count for the prepated statement cache
 int getPreparedStatementCacheHitCount()
          Get the hit count for the prepated statement cache
 int getPreparedStatementCacheMissCount()
          Get the miss count for the prepated statement cache
 Class getType(String name)
          
 Object getValue(String name)
          
 boolean isEnabled()
          
 void registerPreparedStatementCache(PreparedStatementCache v)
          Register prepared statement cache
 void setEnabled(boolean v)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcStatisticsPlugin

public JdbcStatisticsPlugin()
Constructor

Method Detail

getNames

public Set<String> getNames()

Specified by:
getNames in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

getType

public Class getType(String name)

Specified by:
getType in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

getDescription

public String getDescription(String name)

Specified by:
getDescription in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

getDescription

public String getDescription(String name,
                             Locale locale)

Specified by:
getDescription in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

getValue

public Object getValue(String name)

Specified by:
getValue in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

isEnabled

public boolean isEnabled()

Specified by:
isEnabled in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

setEnabled

public void setEnabled(boolean v)

Specified by:
setEnabled in interface org.jboss.jca.core.spi.statistics.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 int 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 int 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 org.jboss.jca.core.spi.statistics.StatisticsPlugin


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)