public void disableManager ( ) { logger . info ( "Disabling Metric Manager" ) ; if ( isManagerEnabled ) { isManagerEnabled = false ; for ( final IMetricEmitter emitter : this . metricEmitters ) { try { emitter . purgeAllData ( ) ; } catch ( final MetricException ex ) { logger . error ( "Failed to purge data " , ex ) ; } } } }
Disable Metric Manager and ask all emitters to purge all available data .