Examples of Gauge


Examples of com.codahale.metrics.Gauge

                .isEqualTo(1L);
    }

    @Test
    public void hasAGaugeForNonHeapInit() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("non-heap.init");

        assertThat(gauge.getValue())
                .isEqualTo(2L);
    }
View Full Code Here

Examples of com.codahale.metrics.Gauge

                .isEqualTo(2L);
    }

    @Test
    public void hasAGaugeForNonHeapUsed() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("non-heap.used");

        assertThat(gauge.getValue())
                .isEqualTo(3L);
    }
View Full Code Here

Examples of com.codahale.metrics.Gauge

                .isEqualTo(3L);
    }

    @Test
    public void hasAGaugeForNonHeapMax() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("non-heap.max");

        assertThat(gauge.getValue())
                .isEqualTo(4L);
    }
View Full Code Here

Examples of com.codahale.metrics.Gauge

                .isEqualTo(4L);
    }

    @Test
    public void hasAGaugeForNonHeapUsage() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("non-heap.usage");

        assertThat(gauge.getValue())
                .isEqualTo(0.75);
    }
View Full Code Here

Examples of com.codahale.metrics.Gauge

                .isEqualTo(0.75);
    }

    @Test
    public void hasAGaugeForMemoryPoolUsage() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("pools.Big-Pool.usage");

        assertThat(gauge.getValue())
                .isEqualTo(0.75);
    }
View Full Code Here

Examples of com.codahale.metrics.Gauge

                .isEqualTo(0.75);
    }

    @Test
    public void hasAGaugeForWeirdMemoryPoolInit() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("pools.Weird-Pool.init");

        assertThat(gauge.getValue())
                .isEqualTo(200L);
    }
View Full Code Here

Examples of com.codahale.metrics.Gauge

                .isEqualTo(200L);
    }

    @Test
    public void hasAGaugeForWeirdMemoryPoolCommitted() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("pools.Weird-Pool.committed");

        assertThat(gauge.getValue())
                .isEqualTo(100L);
    }
View Full Code Here

Examples of com.codahale.metrics.Gauge

                .isEqualTo(100L);
    }

    @Test
    public void hasAGaugeForWeirdMemoryPoolUsed() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("pools.Weird-Pool.used");

        assertThat(gauge.getValue())
                .isEqualTo(300L);
    }
View Full Code Here

Examples of com.codahale.metrics.Gauge

                .isEqualTo(300L);
    }

    @Test
    public void hasAGaugeForWeirdMemoryPoolUsage() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("pools.Weird-Pool.usage");

        assertThat(gauge.getValue())
                .isEqualTo(3.0);
    }
View Full Code Here

Examples of com.codahale.metrics.Gauge

                .isEqualTo(3.0);
    }

    @Test
    public void hasAGaugeForWeirdMemoryPoolMax() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("pools.Weird-Pool.max");

        assertThat(gauge.getValue())
                .isEqualTo(-1L);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.