use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class RaftService method init.
@Override
public void init(NodeEngine nodeEngine, Properties properties) {
if (!metadataGroupManager.init()) {
return;
}
if (config.getMissingCPMemberAutoRemovalSeconds() > 0) {
ExecutionService executionService = nodeEngine.getExecutionService();
executionService.scheduleWithRepetition(CP_SUBSYSTEM_MANAGEMENT_EXECUTOR, new AutoRemoveMissingCPMemberTask(), REMOVE_MISSING_MEMBER_TASK_PERIOD_SECONDS, REMOVE_MISSING_MEMBER_TASK_PERIOD_SECONDS, SECONDS);
}
MetricsRegistry metricsRegistry = this.nodeEngine.getMetricsRegistry();
metricsRegistry.scheduleAtFixedRate(new PublishNodeMetricsTask(), metricsPeriod, SECONDS, ProbeLevel.INFO);
}
use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class AtomicLongService method init.
@Override
public void init(NodeEngine nodeEngine, Properties properties) {
super.init(nodeEngine, properties);
MetricsRegistry metricsRegistry = this.nodeEngine.getMetricsRegistry();
metricsRegistry.registerDynamicMetricsProvider(this);
}
use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class AtomicRefService method init.
@Override
public void init(NodeEngine nodeEngine, Properties properties) {
super.init(nodeEngine, properties);
MetricsRegistry metricsRegistry = this.nodeEngine.getMetricsRegistry();
metricsRegistry.registerDynamicMetricsProvider(this);
}
use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class DefaultNodeContext method createServer.
@Override
public Server createServer(Node node, ServerSocketRegistry registry, LocalAddressRegistry addressRegistry) {
TcpServerContext context = new TcpServerContext(node, node.nodeEngine);
Networking networking = createNetworking(node);
Config config = node.getConfig();
MetricsRegistry metricsRegistry = node.nodeEngine.getMetricsRegistry();
return new TcpServer(config, context, registry, addressRegistry, metricsRegistry, networking, node.getNodeExtension().createChannelInitializerFn(context));
}
use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class DistributedDatastructuresMetricsTest method assertHasStatsEventually.
private void assertHasStatsEventually(final String dsName, final String metricPrefix) {
final MetricsRegistry registry = getNode(hz).nodeEngine.getMetricsRegistry();
assertTrueEventually(() -> {
final StringMetricsCollector collector = new StringMetricsCollector(dsName, metricPrefix);
registry.collect(collector);
assertFalse(collector.probes.isEmpty());
});
}
Aggregations