use of com.hazelcast.internal.diagnostics.Diagnostics 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.Diagnostics in project hazelcast by hazelcast.
the class HazelcastClientInstanceImpl method initDiagnostics.
private Diagnostics initDiagnostics(ClientConfig config) {
String name = "diagnostics-client-" + id + "-" + currentTimeMillis();
ILogger logger = loggingService.getLogger(Diagnostics.class);
HazelcastThreadGroup hzThreadGroup = new HazelcastThreadGroup(getName(), logger, config.getClassLoader());
return new Diagnostics(name, logger, hzThreadGroup, properties);
}
use of com.hazelcast.internal.diagnostics.Diagnostics 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.Diagnostics in project hazelcast by hazelcast.
the class NodeEngineImpl method newDiagnostics.
private Diagnostics newDiagnostics() {
Member localMember = node.getLocalMember();
Address address = localMember.getAddress();
String addressString = address.getHost().replace(":", "_") + "_" + address.getPort();
String name = "diagnostics-" + addressString + "-" + currentTimeMillis();
return new Diagnostics(name, loggingService.getLogger(Diagnostics.class), node.getHazelcastThreadGroup(), node.getProperties());
}
use of com.hazelcast.internal.diagnostics.Diagnostics 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);
}
Aggregations