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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JdbcStatisticsPlugin()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voiddeltaPreparedStatementCacheAccessCount()Delta the access count for the prepated statement cachevoiddeltaPreparedStatementCacheAddCount()Delta the add count for the prepated statement cachevoiddeltaPreparedStatementCacheDeleteCount()Delta the delete count for the prepated statement cachevoiddeltaPreparedStatementCacheHitCount()Delta the hit count for the prepated statement cachevoiddeltaPreparedStatementCacheMissCount()Delta the miss count for the prepated statement cachevoidderegisterPreparedStatementCache(PreparedStatementCache v)Deregister prepared statement cacheStringgetDescription(String name)StringgetDescription(String name, Locale locale)Set<String>getNames()longgetPreparedStatementCacheAccessCount()Get the access count for the prepated statement cachelonggetPreparedStatementCacheAddCount()Get the add count for the prepated statement cacheintgetPreparedStatementCacheCurrentSize()Get the current size for the prepated statement cachelonggetPreparedStatementCacheDeleteCount()Get the delete count for the prepated statement cachelonggetPreparedStatementCacheHitCount()Get the hit count for the prepated statement cachelonggetPreparedStatementCacheMissCount()Get the miss count for the prepated statement cacheClassgetType(String name)ObjectgetValue(String name)booleanisEnabled()voidregisterPreparedStatementCache(PreparedStatementCache v)Register prepared statement cachevoidsetEnabled(boolean v)
-
-
-
Method Detail
-
getNames
public Set<String> getNames()
- Specified by:
getNamesin interfaceStatisticsPlugin
-
getType
public Class getType(String name)
- Specified by:
getTypein interfaceStatisticsPlugin
-
getDescription
public String getDescription(String name)
- Specified by:
getDescriptionin interfaceStatisticsPlugin
-
getDescription
public String getDescription(String name, Locale locale)
- Specified by:
getDescriptionin interfaceStatisticsPlugin
-
getValue
public Object getValue(String name)
- Specified by:
getValuein interfaceStatisticsPlugin
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceStatisticsPlugin
-
setEnabled
public void setEnabled(boolean v)
- Specified by:
setEnabledin interfaceStatisticsPlugin
-
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:
clearin interfaceStatisticsPlugin
-
-