Search in sources :

Example 1 with StoreLatencyPlugin

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);
}
Also used : NodeEngineImpl(com.hazelcast.spi.impl.NodeEngineImpl) Diagnostics(com.hazelcast.internal.diagnostics.Diagnostics) StoreLatencyPlugin(com.hazelcast.internal.diagnostics.StoreLatencyPlugin)

Example 2 with StoreLatencyPlugin

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));
}
Also used : OverloadedConnectionsPlugin(com.hazelcast.internal.diagnostics.OverloadedConnectionsPlugin) ConfigPropertiesPlugin(com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin) StoreLatencyPlugin(com.hazelcast.internal.diagnostics.StoreLatencyPlugin) PendingInvocationsPlugin(com.hazelcast.internal.diagnostics.PendingInvocationsPlugin) MetricsPlugin(com.hazelcast.internal.diagnostics.MetricsPlugin) MemberHazelcastInstanceInfoPlugin(com.hazelcast.internal.diagnostics.MemberHazelcastInstanceInfoPlugin) InvocationPlugin(com.hazelcast.internal.diagnostics.InvocationPlugin) SystemPropertiesPlugin(com.hazelcast.internal.diagnostics.SystemPropertiesPlugin) BuildInfoPlugin(com.hazelcast.internal.diagnostics.BuildInfoPlugin) SystemLogPlugin(com.hazelcast.internal.diagnostics.SystemLogPlugin) SlowOperationPlugin(com.hazelcast.internal.diagnostics.SlowOperationPlugin)

Example 3 with StoreLatencyPlugin

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);
}
Also used : HazelcastInstance(com.hazelcast.core.HazelcastInstance) StoreLatencyPlugin(com.hazelcast.internal.diagnostics.StoreLatencyPlugin) CacheLoader(javax.cache.integration.CacheLoader) Before(org.junit.Before)

Example 4 with StoreLatencyPlugin

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);
}
Also used : StoreLatencyPlugin(com.hazelcast.internal.diagnostics.StoreLatencyPlugin) RingbufferStore(com.hazelcast.core.RingbufferStore) Before(org.junit.Before)

Example 5 with StoreLatencyPlugin

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);
}
Also used : StoreLatencyPlugin(com.hazelcast.internal.diagnostics.StoreLatencyPlugin) MapLoader(com.hazelcast.core.MapLoader) Before(org.junit.Before)

Aggregations

StoreLatencyPlugin (com.hazelcast.internal.diagnostics.StoreLatencyPlugin)10 Before (org.junit.Before)6 Diagnostics (com.hazelcast.internal.diagnostics.Diagnostics)3 NodeEngineImpl (com.hazelcast.spi.impl.NodeEngineImpl)3 HazelcastInstance (com.hazelcast.core.HazelcastInstance)2 MapLoader (com.hazelcast.core.MapLoader)1 MapStore (com.hazelcast.core.MapStore)1 QueueStore (com.hazelcast.core.QueueStore)1 RingbufferStore (com.hazelcast.core.RingbufferStore)1 BuildInfoPlugin (com.hazelcast.internal.diagnostics.BuildInfoPlugin)1 ConfigPropertiesPlugin (com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin)1 InvocationPlugin (com.hazelcast.internal.diagnostics.InvocationPlugin)1 MemberHazelcastInstanceInfoPlugin (com.hazelcast.internal.diagnostics.MemberHazelcastInstanceInfoPlugin)1 MetricsPlugin (com.hazelcast.internal.diagnostics.MetricsPlugin)1 OverloadedConnectionsPlugin (com.hazelcast.internal.diagnostics.OverloadedConnectionsPlugin)1 PendingInvocationsPlugin (com.hazelcast.internal.diagnostics.PendingInvocationsPlugin)1 SlowOperationPlugin (com.hazelcast.internal.diagnostics.SlowOperationPlugin)1 SystemLogPlugin (com.hazelcast.internal.diagnostics.SystemLogPlugin)1 SystemPropertiesPlugin (com.hazelcast.internal.diagnostics.SystemPropertiesPlugin)1 CacheLoader (javax.cache.integration.CacheLoader)1