use of com.hazelcast.internal.metrics.LongGauge in project hazelcast by hazelcast.
the class RegisterAnnotatedMethodsTest method register_superclassWithGaugeMethods.
@Test
public void register_superclassWithGaugeMethods() {
SubclassWithGauges object = new SubclassWithGauges();
metricsRegistry.scanAndRegister(object, "foo");
LongGauge methodGauge = metricsRegistry.newLongGauge("foo.method");
assertEquals(object.method(), methodGauge.read());
LongGauge fieldGauge = metricsRegistry.newLongGauge("foo.field");
assertEquals(object.field, fieldGauge.read());
}
use of com.hazelcast.internal.metrics.LongGauge in project hazelcast by hazelcast.
the class RegisterAnnotatedMethodsTest method register_primitiveByte.
@Test
public void register_primitiveByte() {
PrimitiveByteMethod object = new PrimitiveByteMethod();
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_subclass.
@Test
public void register_subclass() {
SubclassMethod object = new SubclassMethod();
metricsRegistry.scanAndRegister(object, "foo");
LongGauge gauge = metricsRegistry.newLongGauge("foo.method");
assertEquals(object.method().size(), gauge.read());
}
Aggregations