use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class QueueStoreWrapper method instrument.
void instrument(NodeEngine nodeEngine) {
Diagnostics diagnostics = ((NodeEngineImpl) nodeEngine).getDiagnostics();
StoreLatencyPlugin storeLatencyPlugin = diagnostics.getPlugin(StoreLatencyPlugin.class);
if (!enabled || storeLatencyPlugin == null) {
return;
}
this.store = new LatencyTrackingQueueStore(store, storeLatencyPlugin, name);
}
use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class NodeEngineImpl method start.
public void start() {
RuntimeMetricSet.register(metricsRegistry);
GarbageCollectionMetricSet.register(metricsRegistry);
OperatingSystemMetricSet.register(metricsRegistry);
ThreadMetricSet.register(metricsRegistry);
ClassLoadingMetricSet.register(metricsRegistry);
FileMetricSet.register(metricsRegistry);
metricsRegistry.collectMetrics(operationService, proxyService, eventService, operationParker);
serviceManager.start();
proxyService.init();
operationService.start();
quorumService.start();
diagnostics.start();
// static loggers at beginning of file
diagnostics.register(new BuildInfoPlugin(this));
diagnostics.register(new SystemPropertiesPlugin(this));
diagnostics.register(new ConfigPropertiesPlugin(this));
// periodic loggers
diagnostics.register(new OverloadedConnectionsPlugin(this));
diagnostics.register(new PendingInvocationsPlugin(this));
diagnostics.register(new MetricsPlugin(this));
diagnostics.register(new SlowOperationPlugin(this));
diagnostics.register(new InvocationPlugin(this));
diagnostics.register(new MemberHazelcastInstanceInfoPlugin(this));
diagnostics.register(new SystemLogPlugin(this));
diagnostics.register(new StoreLatencyPlugin(this));
}
use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class LatencyTrackingCacheLoaderTest method setup.
@Before
@SuppressWarnings("unchecked")
public void setup() {
HazelcastInstance hz = createHazelcastInstance();
plugin = new StoreLatencyPlugin(getNodeEngineImpl(hz));
delegate = mock(CacheLoader.class);
cacheLoader = new LatencyTrackingCacheLoader<String, String>(delegate, plugin, NAME);
}
use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class LatencyTrackingRingbufferStoreTest method setup.
@Before
public void setup() {
hz = createHazelcastInstance();
plugin = new StoreLatencyPlugin(getNodeEngineImpl(hz));
delegate = mock(RingbufferStore.class);
ringbufferStore = new LatencyTrackingRingbufferStore<String>(delegate, plugin, NAME);
}
use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class LatencyTrackingMapLoaderTest method setup.
@Before
public void setup() {
hz = createHazelcastInstance();
plugin = new StoreLatencyPlugin(getNodeEngineImpl(hz));
delegate = mock(MapLoader.class);
cacheLoader = new LatencyTrackingMapLoader<String, String>(delegate, plugin, NAME);
}
Aggregations