Search in sources :

Example 6 with MetricsRegistryImpl

use of com.hazelcast.internal.metrics.impl.MetricsRegistryImpl in project hazelcast by hazelcast.

the class RuntimeMetricSetTest method setup.

@Before
public void setup() {
    metricsRegistry = new MetricsRegistryImpl(Logger.getLogger(MetricsRegistryImpl.class), ProbeLevel.INFO);
    RuntimeMetricSet.register(metricsRegistry);
    runtime = Runtime.getRuntime();
}
Also used : MetricsRegistryImpl(com.hazelcast.internal.metrics.impl.MetricsRegistryImpl) Before(org.junit.Before)

Example 7 with MetricsRegistryImpl

use of com.hazelcast.internal.metrics.impl.MetricsRegistryImpl in project hazelcast by hazelcast.

the class ThreadMetricSetTest method setup.

@Before
public void setup() {
    metricsRegistry = new MetricsRegistryImpl(Logger.getLogger(MetricsRegistryImpl.class), INFO);
    ThreadMetricSet.register(metricsRegistry);
}
Also used : MetricsRegistryImpl(com.hazelcast.internal.metrics.impl.MetricsRegistryImpl) Before(org.junit.Before)

Example 8 with MetricsRegistryImpl

use of com.hazelcast.internal.metrics.impl.MetricsRegistryImpl in project hazelcast by hazelcast.

the class ClassLoadingMetricSetTest method setup.

@Before
public void setup() {
    metricsRegistry = new MetricsRegistryImpl(Logger.getLogger(MetricsRegistryImpl.class), INFO);
    ClassLoadingMetricSet.register(metricsRegistry);
}
Also used : MetricsRegistryImpl(com.hazelcast.internal.metrics.impl.MetricsRegistryImpl) Before(org.junit.Before)

Example 9 with MetricsRegistryImpl

use of com.hazelcast.internal.metrics.impl.MetricsRegistryImpl in project hazelcast by hazelcast.

the class FileMetricSetTest method setup.

@Before
public void setup() {
    metricsRegistry = new MetricsRegistryImpl(Logger.getLogger(MetricsRegistryImpl.class), INFO);
    FileMetricSet.register(metricsRegistry);
}
Also used : MetricsRegistryImpl(com.hazelcast.internal.metrics.impl.MetricsRegistryImpl) Before(org.junit.Before)

Aggregations

MetricsRegistryImpl (com.hazelcast.internal.metrics.impl.MetricsRegistryImpl)9 Before (org.junit.Before)6 QuickTest (com.hazelcast.test.annotation.QuickTest)2 Test (org.junit.Test)2 LongGauge (com.hazelcast.internal.metrics.LongGauge)1 ProbeLevel (com.hazelcast.internal.metrics.ProbeLevel)1 ILogger (com.hazelcast.logging.ILogger)1