Package org.qi4j.api.metrics

Examples of org.qi4j.api.metrics.MetricsGaugeFactory


    }

    @Override
    protected MetricsGaugeFactory createMetricsGaugeFactory()
    {
        return new MetricsGaugeFactory()
        {
            @Override
            public <T> MetricsGauge<T> registerGauge( Class<?> origin, String name, final MetricsGauge<T> gauge )
            {
                Gauge<T> yammer = Metrics.newGauge( origin, name, app.name(), new Gauge<T>()
View Full Code Here


    @Test
    public void givenMetricsProviderWithoutSupportForGaugeWhenRequestingGaugeExpectDefaultNullImplementation()
    {
        MetricsProvider underTest = new MetricsProviderAdapter();
        MetricsGaugeFactory factory = underTest.createFactory( MetricsGaugeFactory.class );
        MetricsGauge<Long> test = factory.registerGauge( getClass(), "test", new MetricsGauge<Long>()
        {
            @Override
            public Long value()
            {
                return System.currentTimeMillis();
View Full Code Here

TOP

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

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.