@AMXMetadata(type="jdbcra-mon", group="monitoring") @ManagedObject @Description(value="JDBC RA Statistics") public class JdbcStatsProvider extends Object
Constructor and Description |
---|
JdbcStatsProvider(String poolName,
String appName,
String moduleName,
int sqlTraceCacheSize,
long timeToKeepQueries) |
JdbcStatsProvider(String poolName,
String appName,
String moduleName,
int sqlTraceCacheSize,
long timeToKeepQueries,
int maxStoredEntries) |
Modifier and Type | Method and Description |
---|---|
FrequentSQLTraceCache |
getFreqSqlTraceCache()
Get the FrequentSQLTraceCache associated with this stats provider.
|
org.glassfish.external.statistics.ListStatistic |
getfreqUsedSqlQueries() |
org.glassfish.external.statistics.CountStatistic |
getNumPotentialStatementLeak() |
org.glassfish.external.statistics.CountStatistic |
getNumStatementCacheHit() |
org.glassfish.external.statistics.CountStatistic |
getNumStatementCacheMiss() |
org.glassfish.external.statistics.ListStatistic |
getSlowSqlQueries() |
SlowSqlTraceCache |
getSlowSqlTraceCache()
Get the SlowSqlTraceCache associated with this stats provider.
|
void |
potentialStatementLeakEvent(String poolName,
String appName,
String moduleName)
Whenever statement leak happens, increment numPotentialStatementLeak count.
|
void |
statementCacheHitEvent(String poolName,
String appName,
String moduleName)
Whenever statement cache is hit, increment numStatementCacheHit count.
|
void |
statementCacheMissEvent(String poolName,
String appName,
String moduleName)
Whenever statement cache miss happens, increment numStatementCacheMiss count.
|
void |
traceSQLEvent(String poolName,
String appName,
String moduleName,
String sql,
long executionTime)
Whenever a sql statement that is traced is to be cache for monitoring
purpose, the SQLTrace object is created for the specified sql and
updated in the SQLTraceCache.
|
public JdbcStatsProvider(String poolName, String appName, String moduleName, int sqlTraceCacheSize, long timeToKeepQueries)
public void statementCacheHitEvent(String poolName, String appName, String moduleName)
poolName
- JdbcConnectionPool that has got a statement cache hit event.public void statementCacheMissEvent(String poolName, String appName, String moduleName)
poolName
- JdbcConnectionPool that has got a statement cache miss event.public void traceSQLEvent(String poolName, String appName, String moduleName, String sql, long executionTime)
poolName
- appName
- sql
- moduleName
- executionTime
- public void potentialStatementLeakEvent(String poolName, String appName, String moduleName)
poolName
- JdbcConnectionPool that has got a statement leak event.@ManagedAttribute(id="numstatementcachehit") public org.glassfish.external.statistics.CountStatistic getNumStatementCacheHit()
@ManagedAttribute(id="numstatementcachemiss") public org.glassfish.external.statistics.CountStatistic getNumStatementCacheMiss()
@ManagedAttribute(id="frequsedsqlqueries") public org.glassfish.external.statistics.ListStatistic getfreqUsedSqlQueries()
@ManagedAttribute(id="slowSqlQueries") public org.glassfish.external.statistics.ListStatistic getSlowSqlQueries()
@ManagedAttribute(id="numpotentialstatementleak") public org.glassfish.external.statistics.CountStatistic getNumPotentialStatementLeak()
public FrequentSQLTraceCache getFreqSqlTraceCache()
public SlowSqlTraceCache getSlowSqlTraceCache()
Copyright © 2019. All rights reserved.