@Test public void testIsSqlMonitoringDisabled() { Utils.setProperty(Parameter.DISABLED, "false"); jdbcWrapper.getSqlCounter().setDisplayed(true); assertFalse("isSqlMonitoringDisabled1", jdbcWrapper.isSqlMonitoringDisabled()); Utils.setProperty(Parameter.DISABLED, "true"); assertTrue("isSqlMonitoringDisabled2", jdbcWrapper.isSqlMonitoringDisabled()); Utils.setProperty(Parameter.DISABLED, "false"); jdbcWrapper.getSqlCounter().setDisplayed(false); assertTrue("isSqlMonitoringDisabled3", jdbcWrapper.isSqlMonitoringDisabled()); jdbcWrapper.getSqlCounter().setDisplayed(true); assertFalse("isSqlMonitoringDisabled4", jdbcWrapper.isSqlMonitoringDisabled()); }
boolean isSqlMonitoringDisabled() { return isMonitoringDisabled() || !sqlCounter.isDisplayed(); }
JdbcWrapper { boolean isSqlMonitoringDisabled() { return isMonitoringDisabled() || !sqlCounter.isDisplayed(); } }
JdbcWrapper { boolean isSqlMonitoringDisabled() { return isMonitoringDisabled() || !sqlCounter.isDisplayed(); } private  JdbcWrapper(Counter sqlCounter); }
JdbcWrapper { boolean isSqlMonitoringDisabled() { return isMonitoringDisabled() || !sqlCounter.isDisplayed(); } private  JdbcWrapper(Counter sqlCounter); static int getUsedConnectionCount(); static int getActiveConnectionCount(); static long getTransactionCount(); static int getActiveThreadCount(); static int getRunningBuildCount(); static int getBuildQueueLength(); static long getBuildQueueWaitingDurationsSum(); static List<ConnectionInformations> getConnectionInformationsList(); Counter getSqlCounter(); static int getMaxConnectionCount(); static Map<String, Map<String, Object>> getBasicDataSourceProperties(); static Map<String, DataSource> getJndiAndSpringDataSources(); static void registerSpringDataSource(String name, DataSource dataSource); DataSource createDataSourceProxy(DataSource dataSource); DataSource createDataSourceProxy(String name, final DataSource dataSource); Connection createConnectionProxy(Connection connection); }
JdbcWrapper { boolean isSqlMonitoringDisabled() { return isMonitoringDisabled() || !sqlCounter.isDisplayed(); } private  JdbcWrapper(Counter sqlCounter); static int getUsedConnectionCount(); static int getActiveConnectionCount(); static long getTransactionCount(); static int getActiveThreadCount(); static int getRunningBuildCount(); static int getBuildQueueLength(); static long getBuildQueueWaitingDurationsSum(); static List<ConnectionInformations> getConnectionInformationsList(); Counter getSqlCounter(); static int getMaxConnectionCount(); static Map<String, Map<String, Object>> getBasicDataSourceProperties(); static Map<String, DataSource> getJndiAndSpringDataSources(); static void registerSpringDataSource(String name, DataSource dataSource); DataSource createDataSourceProxy(DataSource dataSource); DataSource createDataSourceProxy(String name, final DataSource dataSource); Connection createConnectionProxy(Connection connection); static final JdbcWrapper SINGLETON; }