Examples of Gauge


Examples of com.codahale.metrics.Gauge

                        "pools.Weird-Pool.max");
    }

    @Test
    public void hasAGaugeForTotalCommitted() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("total.committed");

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

Examples of com.codahale.metrics.Gauge

                .isEqualTo(11L);
    }

    @Test
    public void hasAGaugeForTotalInit() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("total.init");

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

Examples of com.codahale.metrics.Gauge

                .isEqualTo(22L);
    }

    @Test
    public void hasAGaugeForTotalUsed() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("total.used");

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

Examples of com.codahale.metrics.Gauge

                .isEqualTo(33L);
    }

    @Test
    public void hasAGaugeForTotalMax() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("total.max");

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

Examples of com.codahale.metrics.Gauge

                .isEqualTo(44L);
    }

    @Test
    public void hasAGaugeForHeapCommitted() throws Exception {
        final Gauge gauge = (Gauge) gauges.getMetrics().get("heap.committed");

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

Examples of com.codahale.metrics.Gauge

                .isEqualTo(10L);
    }

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

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

Examples of com.codahale.metrics.Gauge

                .isEqualTo(20L);
    }

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

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

Examples of com.codahale.metrics.Gauge

                .isEqualTo(30L);
    }

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

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

Examples of com.codahale.metrics.Gauge

                .isEqualTo(40L);
    }

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

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

Examples of com.codahale.metrics.Gauge

                .isEqualTo(0.75);
    }

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

        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.