use of com.hazelcast.internal.metrics.LongGauge in project hazelcast by hazelcast.
the class RegisterAnnotatedMethodsTest method register_atomicLong.
@Test
public void register_atomicLong() {
AtomicLongMethod object = new AtomicLongMethod();
metricsRegistry.scanAndRegister(object, "foo");
LongGauge gauge = metricsRegistry.newLongGauge("foo.method");
assertEquals(object.method().get(), gauge.read());
}
use of com.hazelcast.internal.metrics.LongGauge in project hazelcast by hazelcast.
the class RegisterAnnotatedMethodsTest method register_interfaceWithGauges.
@Test
public void register_interfaceWithGauges() {
SomeInterfaceImplementation object = new SomeInterfaceImplementation();
metricsRegistry.scanAndRegister(object, "foo");
LongGauge gauge = metricsRegistry.newLongGauge("foo.method");
assertEquals(10, gauge.read());
}
use of com.hazelcast.internal.metrics.LongGauge in project hazelcast by hazelcast.
the class RegisterAnnotatedMethodsTest method register_primitiveInt.
@Test
public void register_primitiveInt() {
PrimitiveIntMethod object = new PrimitiveIntMethod();
metricsRegistry.scanAndRegister(object, "foo");
LongGauge gauge = metricsRegistry.newLongGauge("foo.method");
assertEquals(10, gauge.read());
}
use of com.hazelcast.internal.metrics.LongGauge in project hazelcast by hazelcast.
the class RegisterAnnotatedMethodsTest method register_primitiveShort.
@Test
public void register_primitiveShort() {
PrimitiveShortMethod object = new PrimitiveShortMethod();
metricsRegistry.scanAndRegister(object, "foo");
LongGauge gauge = metricsRegistry.newLongGauge("foo.method");
assertEquals(object.method(), gauge.read());
}
use of com.hazelcast.internal.metrics.LongGauge in project hazelcast by hazelcast.
the class RegisterAnnotatedMethodsTest method register_primitiveLong.
@Test
public void register_primitiveLong() {
PrimitiveLongMethod object = new PrimitiveLongMethod();
metricsRegistry.scanAndRegister(object, "foo");
LongGauge gauge = metricsRegistry.newLongGauge("foo.method");
assertEquals(10, gauge.read());
}
Aggregations