class MetricsMxBeanImpl implements MetricsMxBean {
    /** Metric manager. */
    private final GridMetricManager mmgr;

    /** Logger. */
    private final IgniteLogger log;

    /**
     * @param mmgr Metric manager.
     * @param log Logger.
     */
    public MetricsMxBeanImpl(GridMetricManager mmgr, IgniteLogger log) {
        this.mmgr = mmgr;
        this.log = log;
    }

    /** {@inheritDoc} */
    @Override public void resetMetrics(String registry) {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override public void configureHitRateMetric(String name, long rateTimeInterval) {
        try {
            mmgr.configureHitRate(name, rateTimeInterval);
        }
        catch (IgniteCheckedException e) {
            throw new IgniteException(e);
        }
    }

    /** {@inheritDoc} */
    @Override public void configureHistogramMetric(String name, long[] bounds) {
        try {
            mmgr.configureHistogram(name, bounds);
        }
        catch (IgniteCheckedException e) {
            throw new IgniteException(e);
        }
    }
}

        assert registry != null;

        MetricRegistryImpl mreg = mmgr.registry(registry);

        if (mreg != null)
            mreg.reset();
        else if (log.isInfoEnabled())
            log.info("\"" + registry + "\" not found.");
    
<no_super_class>