use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class LatencyTrackingMapStoreTest method setup.
@Before
public void setup() {
hz = createHazelcastInstance();
plugin = new StoreLatencyPlugin(getNodeEngineImpl(hz));
delegate = mock(MapStore.class);
cacheStore = new LatencyTrackingMapStore<String, String>(delegate, plugin, NAME);
}
use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class MapStoreWrapper method instrument.
public void instrument(NodeEngine nodeEngine) {
Diagnostics diagnostics = ((NodeEngineImpl) nodeEngine).getDiagnostics();
StoreLatencyPlugin storeLatencyPlugin = diagnostics.getPlugin(StoreLatencyPlugin.class);
if (storeLatencyPlugin == null) {
return;
}
if (mapLoader != null) {
this.mapLoader = new LatencyTrackingMapLoader(mapLoader, storeLatencyPlugin, mapName);
}
if (mapStore != null) {
this.mapStore = new LatencyTrackingMapStore(mapStore, storeLatencyPlugin, mapName);
}
}
use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class LatencyTrackingCacheWriterTest method setup.
@Before
@SuppressWarnings("unchecked")
public void setup() {
HazelcastInstance hz = createHazelcastInstance();
plugin = new StoreLatencyPlugin(getNodeEngineImpl(hz));
delegate = mock(CacheWriter.class);
cacheWriter = new LatencyTrackingCacheWriter<Integer, String>(delegate, plugin, NAME);
}
use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class RingbufferStoreWrapper 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 LatencyTrackingRingbufferStore(store, storeLatencyPlugin, name);
}
use of com.hazelcast.internal.diagnostics.StoreLatencyPlugin in project hazelcast by hazelcast.
the class LatencyTrackingQueueStoreTest method setup.
@Before
public void setup() {
hz = createHazelcastInstance();
plugin = new StoreLatencyPlugin(getNodeEngineImpl(hz));
delegate = mock(QueueStore.class);
queueStore = new LatencyTrackingQueueStore<String>(delegate, plugin, NAME);
}
Aggregations