@Override public Integer getValue() { if (ds.getPool() != null) { return ds.getPool().getStatistics().getTotalLeased(); } else { return 0; } } });
@Override public Integer getValue() { if (ds.getPool() != null) { return ds.getPool().getStatistics().getTotalCreatedConnections(); } else { return 0; } } });
@Override public Integer getValue() { if (ds.getPool() != null) { return ds.getPool().getStatistics().getTotalFree(); } else { return 0; } } });
@Override public Double getValue() { if (ds.getPool() != null) { return ds.getPool().getStatistics().getConnectionWaitTimeAvg(); } else { return 0.0; } } });
BoneCPConfig config = connectionHandle.getPool().getConfig(); this.connectionHook = config.getConnectionHook(); this.statistics = connectionHandle.getPool().getStatistics(); this.statisticsEnabled = config.isStatisticsEnabled();
this.connectionTrackingDisabled = pool.getConfig().isDisableConnectionTracking(); this.statisticsEnabled = pool.getConfig().isStatisticsEnabled(); this.statistics = pool.getStatistics(); this.detectUnresolvedTransactions = pool.getConfig().isDetectUnresolvedTransactions(); this.detectUnclosedStatements = pool.getConfig().isDetectUnclosedStatements(); int cacheSize = pool.getConfig().getStatementsCacheSize(); if ( (cacheSize > 0) && newConnection ) { this.preparedStatementCache = new StatementCache(cacheSize, pool.getConfig().isStatisticsEnabled(), pool.getStatistics()); this.callableStatementCache = new StatementCache(cacheSize, pool.getConfig().isStatisticsEnabled(), pool.getStatistics()); this.statementCachingEnabled = true;