use of org.glassfish.j2ee.statistics.RangeStatistic in project Payara by payara.
the class ConnectionPoolStatsTest method accessAllStatistics.
/**
* Verify that every Statistic can be successfully accessed.
*/
protected void accessAllStatistics(final ConnectionPoolStats s) {
final RangeStatistic r1 = s.getNumConnUsed();
assert (r1 != null);
final RangeStatistic r2 = s.getNumConnFree();
assert (r2 != null);
final RangeStatistic r3 = s.getConnRequestWaitTime();
assert (r3 != null);
final CountStatistic c1 = s.getNumConnFailedValidation();
assert (c1 != null);
final CountStatistic c2 = s.getNumConnTimedOut();
assert (c2 != null);
final CountStatistic c3 = s.getWaitQueueLength();
assert (c3 != null);
final CountStatistic c4 = s.getNumConnCreated();
assert (c4 != null);
final CountStatistic c5 = s.getNumConnDestroyed();
assert (c5 != null);
// final CountStatistic c6 = s.getNumConnOpened();
// assert( c6 != null );
// final CountStatistic c7 = s.getNumConnClosed();
// assert( c7 != null );
final CountStatistic c8 = s.getAverageConnWaitTime();
assert (c8 != null);
}
Aggregations