Search in sources :

Example 1 with BooleanMetricImpl

use of org.apache.ignite.internal.processors.metric.impl.BooleanMetricImpl in project ignite by apache.

the class MetricsSelfTest method testBooleanGauges.

/**
 */
@Test
public void testBooleanGauges() throws Exception {
    BooleanMetricImpl bg = mreg.booleanMetric("bg", "test");
    bg.value(true);
    assertTrue(bg.value());
    bg.reset();
    assertFalse(bg.value());
}
Also used : BooleanMetricImpl(org.apache.ignite.internal.processors.metric.impl.BooleanMetricImpl) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) Test(org.junit.Test)

Aggregations

BooleanMetricImpl (org.apache.ignite.internal.processors.metric.impl.BooleanMetricImpl)1 GridCommonAbstractTest (org.apache.ignite.testframework.junits.common.GridCommonAbstractTest)1 Test (org.junit.Test)1