public static void resetAllCounters ( ) { for ( Map . Entry < String , Counter > entry : METRIC_REGISTRY . getCounters ( ) . entrySet ( ) ) { entry . getValue ( ) . dec ( entry . getValue ( ) . getCount ( ) ) ; } }
Resets all the counters to 0 for testing .