public void setMetricsTrackerFactory ( MetricsTrackerFactory metricsTrackerFactory ) { if ( metricsTrackerFactory != null ) { this . metricsTracker = new MetricsTrackerDelegate ( metricsTrackerFactory . create ( config . getPoolName ( ) , getPoolStats ( ) ) ) ; } else { this . metricsTracker = new NopMetricsTrackerDelegate ( ) ; } }
Set the MetricsTrackerFactory to be used to create the IMetricsTracker instance used by the pool .