/** {@inheritDoc} */ @Override public float getEntryProcessorAverageInvocationTime() { return cache.clusterMetrics().getEntryProcessorAverageInvocationTime(); }
/** * @throws IgniteCheckedException If failed. */ @Test public void testInvokeAllMultipleKeysAvgTime() throws IgniteCheckedException { IgniteCache<Integer, Integer> cache = grid(0).cache(DEFAULT_CACHE_NAME); Set<Integer> keys = new HashSet<>(); keys.add(1); keys.add(2); assertEquals(0.0, cache.localMetrics().getEntryProcessorAverageInvocationTime(), 0.001f); cache.invokeAll(keys, updatingProcessor); U.sleep(100); assertTrue(cache.localMetrics().getEntryProcessorAverageInvocationTime() > 0.0); }
/** * @throws IgniteCheckedException If failed. */ @Test public void testInvokeAllAsyncMultipleKeysAvgTime() throws IgniteCheckedException { IgniteCache<Integer, Integer> cache = grid(0).cache(DEFAULT_CACHE_NAME); Set<Integer> keys = new HashSet<>(); keys.add(1); keys.add(2); assertEquals(0.0, cache.localMetrics().getEntryProcessorAverageInvocationTime(), 0.001f); cache.invokeAllAsync(keys, updatingProcessor).get(); U.sleep(100); assertTrue(cache.localMetrics().getEntryProcessorAverageInvocationTime() > 0.0); } }
/** * @throws IgniteCheckedException If failed. */ @Test public void testInvokeAllAvgTime() throws IgniteCheckedException { IgniteCache<Integer, Integer> cache = grid(0).cache(DEFAULT_CACHE_NAME); assertEquals(0.0, cache.localMetrics().getEntryProcessorAverageInvocationTime(), 0.001f); cache.invokeAll(ImmutableMap.of(0, updatingProcessor, 1, readingProcessor, 2, removingProcessor)); U.sleep(100); assertTrue(cache.localMetrics().getEntryProcessorAverageInvocationTime() > 0.0); }
/** * @throws IgniteCheckedException If failed. */ @Test public void testInvokeAllAsyncAvgTime() throws IgniteCheckedException { IgniteCache<Integer, Integer> cache = grid(0).cache(DEFAULT_CACHE_NAME); assertEquals(0.0, cache.localMetrics().getEntryProcessorAverageInvocationTime(), 0.001f); Map<Integer, EntryProcessorResult<Object>> invokeFut = cache.invokeAllAsync( ImmutableMap.of(0, updatingProcessor, 1, readingProcessor, 2, removingProcessor)).get(); U.sleep(100); assertTrue(cache.localMetrics().getEntryProcessorAverageInvocationTime() > 0.0); }
/** * @throws IgniteCheckedException If failed. */ @Test public void testInvokeAsyncAvgTime() throws IgniteCheckedException { IgniteCache<Integer, Integer> cache = grid(0).cache(DEFAULT_CACHE_NAME); assertEquals(0.0, cache.localMetrics().getEntryProcessorAverageInvocationTime(), 0.001f); final Integer key = primaryKey(cache); cache.invokeAsync(key, updatingProcessor).get(); U.sleep(100); assertTrue(cache.localMetrics().getEntryProcessorAverageInvocationTime() > 0.0); }
IgniteCache<Integer, Integer> cache0 = grid(0).cache(DEFAULT_CACHE_NAME); float averageTime = cache0.localMetrics().getEntryProcessorAverageInvocationTime(); averageTime = cache0.localMetrics().getEntryProcessorAverageInvocationTime(); averageTime = cache0.localMetrics().getEntryProcessorAverageInvocationTime();
entryProcessorMissPercentage = e.getEntryProcessorMissPercentage(); entryProcessorHitPercentage = e.getEntryProcessorHitPercentage(); entryProcessorAverageInvocationTime = e.getEntryProcessorAverageInvocationTime(); entryProcessorMaxInvocationTime = e.getEntryProcessorMaxInvocationTime(); entryProcessorMinInvocationTime = e.getEntryProcessorMinInvocationTime();
entryProcessorMissPercentage = e.getEntryProcessorMissPercentage(); entryProcessorHitPercentage = e.getEntryProcessorHitPercentage(); entryProcessorAverageInvocationTime = e.getEntryProcessorAverageInvocationTime(); entryProcessorMaxInvocationTime = e.getEntryProcessorMaxInvocationTime(); entryProcessorMinInvocationTime = e.getEntryProcessorMinInvocationTime();
assertEquals(m.getEntryProcessorMinInvocationTime(), 0f); assertEquals(m.getEntryProcessorMaxInvocationTime(), 0f); assertEquals(m.getEntryProcessorAverageInvocationTime(), 0f); assertEquals(m.getEntryProcessorInvocations(), 0);
/** {@inheritDoc} */ @Override public float getEntryProcessorAverageInvocationTime() { return cache.clusterMetrics().getEntryProcessorAverageInvocationTime(); }
writer.writeLong(metrics.getEstimatedRebalancingKeys()); writer.writeLong(metrics.getEntryProcessorPuts()); writer.writeFloat(metrics.getEntryProcessorAverageInvocationTime()); writer.writeLong(metrics.getEntryProcessorInvocations()); writer.writeFloat(metrics.getEntryProcessorMaxInvocationTime());
entryProcessorMissPercentage = e.getEntryProcessorMissPercentage(); entryProcessorHitPercentage = e.getEntryProcessorHitPercentage(); entryProcessorAverageInvocationTime = e.getEntryProcessorAverageInvocationTime(); entryProcessorMaxInvocationTime = e.getEntryProcessorMaxInvocationTime(); entryProcessorMinInvocationTime = e.getEntryProcessorMinInvocationTime();
writer.writeLong(metrics.getEstimatedRebalancingKeys()); writer.writeLong(metrics.getEntryProcessorPuts()); writer.writeFloat(metrics.getEntryProcessorAverageInvocationTime()); writer.writeLong(metrics.getEntryProcessorInvocations()); writer.writeFloat(metrics.getEntryProcessorMaxInvocationTime());