/**
* JBQA-6456 Test jdbc statistics of data sources
*
*/
@RunWith(Arquillian.class)
@ServerSetup(DataSourceJdbcStatisticsTestCase.TestCaseSetup.class)
public class DataSourceJdbcStatisticsTestCase {
...
public StringBuffer assertStatisticsSet(boolean yes, ModelNode statisticNode) throws Exception {
StringBuffer sb = new StringBuffer();
String[] params = { "PreparedStatementCacheAccessCount", // The number of times that the statement cache was
// accessed
"PreparedStatementCacheAddCount", // The number of statements added to the statement cache
"PreparedStatementCacheCurrentSize", // The number of prepared and callable statements currently cached in
// the statement cache
"PreparedStatementCacheDeleteCount", // The number of statements discarded from the cache
"PreparedStatementCacheHitCount" // The number of times that statements from the cache were used
};
PreparedStatementCacheAccessCount