Class JdbcStatisticsPlugin
java.lang.Object
org.jboss.jca.adapters.jdbc.statistics.JdbcStatisticsPlugin
- All Implemented Interfaces:
Serializable,StatisticsPlugin
JDBC statistics.
- Author:
- Jesper Pedersen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidDelta the access count for the prepated statement cachevoidDelta the add count for the prepated statement cachevoidDelta the delete count for the prepated statement cachevoidDelta the hit count for the prepated statement cachevoidDelta the miss count for the prepated statement cachevoidDeregister prepared statement cachegetDescription(String name) getDescription(String name, Locale locale) getNames()longGet the access count for the prepated statement cachelongGet the add count for the prepated statement cacheintGet the current size for the prepated statement cachelongGet the delete count for the prepated statement cachelongGet the hit count for the prepated statement cachelongGet the miss count for the prepated statement cachebooleanvoidRegister prepared statement cachevoidsetEnabled(boolean v)
-
Constructor Details
-
JdbcStatisticsPlugin
public JdbcStatisticsPlugin()Constructor
-
-
Method Details
-
getNames
- Specified by:
getNamesin interfaceStatisticsPlugin
-
getType
- Specified by:
getTypein interfaceStatisticsPlugin
-
getDescription
- Specified by:
getDescriptionin interfaceStatisticsPlugin
-
getDescription
- Specified by:
getDescriptionin interfaceStatisticsPlugin
-
getValue
- Specified by:
getValuein interfaceStatisticsPlugin
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceStatisticsPlugin
-
setEnabled
public void setEnabled(boolean v) - Specified by:
setEnabledin interfaceStatisticsPlugin
-
registerPreparedStatementCache
Register prepared statement cache- Parameters:
v- The cache
-
deregisterPreparedStatementCache
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
-