Package org.qi4j.api.metrics

Examples of org.qi4j.api.metrics.MetricsMeterFactory


    }

    @Override
    protected MetricsMeterFactory createMetricsMeterFactory()
    {
        return new MetricsMeterFactory()
        {
            @Override
            public MetricsMeter createMeter( Class<?> origin, String name, String eventType, TimeUnit rate )
            {
                return new YammerMeter( Metrics.newMeter( origin, name, app.name(), eventType, rate ) );
View Full Code Here


    @Test
    public void givenMetricsProviderWithoutSupportForMeterWhenRequestingMeterExpectDefaultNullImplementation()
    {
        MetricsProvider underTest = new MetricsProviderAdapter();
        MetricsMeterFactory factory = underTest.createFactory( MetricsMeterFactory.class );
        MetricsMeter test = factory.createMeter( getClass(), "test", "niclas", TimeUnit.MILLISECONDS );
        test.mark();
        test.mark();
        test.mark();
    }
View Full Code Here

TOP

Related Classes of org.qi4j.api.metrics.MetricsMeterFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.