@Override public Map<String, LocalMapStats> getStats() { LocalMapStatsProvider localMapStatsProvider = mapServiceContext.getLocalMapStatsProvider(); return localMapStatsProvider.createAllLocalMapStats(); } }
@Override public Map<String, LocalMapStats> getStats() { LocalMapStatsProvider localMapStatsProvider = mapServiceContext.getLocalMapStatsProvider(); return localMapStatsProvider.createAllLocalMapStats(); } }
@Override public LocalMapStats getLocalMapStats() { if (!mapConfig.isStatisticsEnabled()) { return EMPTY_LOCAL_MAP_STATS; } return mapServiceContext.getLocalMapStatsProvider().createLocalMapStats(name); }
@Override public LocalMapStats getLocalMapStats() { if (!mapConfig.isStatisticsEnabled()) { return EMPTY_LOCAL_MAP_STATS; } return mapServiceContext.getLocalMapStatsProvider().createLocalMapStats(name); }
@Override protected void beforeResponse() { final long latencyNanos = System.nanoTime() - startTimeNanos; final MapService mapService = getService(MapService.SERVICE_NAME); MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(parameters.name); if (mapContainer.getMapConfig().isStatisticsEnabled()) { mapService.getMapServiceContext().getLocalMapStatsProvider().getLocalMapStatsImpl(parameters.name) .incrementPutLatencyNanos(parameters.entries.size(), latencyNanos); } }
@Override protected void beforeResponse() { final long latencyNanos = System.nanoTime() - startTimeNanos; final MapService mapService = getService(MapService.SERVICE_NAME); MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(parameters.name); if (mapContainer.getMapConfig().isStatisticsEnabled()) { mapService.getMapServiceContext().getLocalMapStatsProvider().getLocalMapStatsImpl(parameters.name) .incrementGetLatencyNanos(parameters.keys.size(), latencyNanos); } }
private void incrementEventStatsInternal(String mapName) { MapContainer mapContainer = mapServiceContext.getMapContainer(mapName); if (mapContainer.getMapConfig().isStatisticsEnabled()) { mapServiceContext.getLocalMapStatsProvider() .getLocalMapStatsImpl(mapName).incrementReceivedEvents(); } }
public void run() { empty = recordStore.isEmpty(); if (mapContainer.getMapConfig().isStatisticsEnabled()) { LocalMapStatsImpl localMapStatsImpl = mapServiceContext.getLocalMapStatsProvider() .getLocalMapStatsImpl(name); localMapStatsImpl.incrementOtherOperations(); } }
public void run() { empty = recordStore.isEmpty(); if (mapContainer.getMapConfig().isStatisticsEnabled()) { LocalMapStatsImpl localMapStatsImpl = mapServiceContext.getLocalMapStatsProvider() .getLocalMapStatsImpl(name); localMapStatsImpl.incrementOtherOperations(); } }
@Override public void run() { contains = recordStore.containsValue(testValue); if (mapContainer.getMapConfig().isStatisticsEnabled()) { LocalMapStatsProvider localMapStatsProvider = mapServiceContext.getLocalMapStatsProvider(); localMapStatsProvider.getLocalMapStatsImpl(name).incrementOtherOperations(); } }
@Override public void run() { contains = recordStore.containsValue(testValue); if (mapContainer.getMapConfig().isStatisticsEnabled()) { LocalMapStatsProvider localMapStatsProvider = mapServiceContext.getLocalMapStatsProvider(); localMapStatsProvider.getLocalMapStatsImpl(name).incrementOtherOperations(); } }
private void incrementEventStatsInternal(String mapName) { MapContainer mapContainer = mapServiceContext.getMapContainer(mapName); if (mapContainer.getMapConfig().isStatisticsEnabled()) { mapServiceContext.getLocalMapStatsProvider() .getLocalMapStatsImpl(mapName).incrementReceivedEvents(); } }
@Override protected void beforeResponse() { final long latencyNanos = System.nanoTime() - startTimeNanos; final MapService mapService = getService(MapService.SERVICE_NAME); MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(parameters.name); if (mapContainer.getMapConfig().isStatisticsEnabled()) { mapService.getMapServiceContext().getLocalMapStatsProvider().getLocalMapStatsImpl(parameters.name) .incrementRemoveLatencyNanos(latencyNanos); } }
@Override protected void beforeResponse() { final long latencyNanos = System.nanoTime() - startTimeNanos; final MapService mapService = getService(MapService.SERVICE_NAME); MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(parameters.name); if (mapContainer.getMapConfig().isStatisticsEnabled()) { mapService.getMapServiceContext().getLocalMapStatsProvider().getLocalMapStatsImpl(parameters.name) .incrementGetLatencyNanos(latencyNanos); } }
protected QueryDispatcher(MapServiceContext mapServiceContext) { this.mapServiceContext = mapServiceContext; this.nodeEngine = mapServiceContext.getNodeEngine(); this.serializationService = (InternalSerializationService) nodeEngine.getSerializationService(); this.partitionService = nodeEngine.getPartitionService(); this.logger = nodeEngine.getLogger(getClass()); this.operationService = nodeEngine.getOperationService(); this.clusterService = nodeEngine.getClusterService(); this.localMapStatsProvider = mapServiceContext.getLocalMapStatsProvider(); this.executor = nodeEngine.getExecutionService().getExecutor(QUERY_EXECUTOR); }
@Override public void run() { recordStore.checkIfLoaded(); size = recordStore.size(); if (mapContainer.getMapConfig().isStatisticsEnabled()) { LocalMapStatsProvider localMapStatsProvider = mapServiceContext.getLocalMapStatsProvider(); LocalMapStatsImpl localMapStatsImpl = localMapStatsProvider.getLocalMapStatsImpl(name); localMapStatsImpl.incrementOtherOperations(); } }
@Override public void run() { recordStore.checkIfLoaded(); size = recordStore.size(); if (mapContainer.getMapConfig().isStatisticsEnabled()) { LocalMapStatsProvider localMapStatsProvider = mapServiceContext.getLocalMapStatsProvider(); LocalMapStatsImpl localMapStatsImpl = localMapStatsProvider.getLocalMapStatsImpl(name); localMapStatsImpl.incrementOtherOperations(); } }
@Override protected void beforeResponse() { final long latencyNanos = System.nanoTime() - startTimeNanos; final MapService mapService = getService(MapService.SERVICE_NAME); MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(getDistributedObjectName()); if (mapContainer.getMapConfig().isStatisticsEnabled()) { mapService.getMapServiceContext().getLocalMapStatsProvider().getLocalMapStatsImpl(getDistributedObjectName()) .incrementPutLatencyNanos(latencyNanos); } }
@Override protected void beforeResponse() { final long latencyNanos = System.nanoTime() - startTimeNanos; final MapService mapService = getService(MapService.SERVICE_NAME); MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(getDistributedObjectName()); if (mapContainer.getMapConfig().isStatisticsEnabled()) { mapService.getMapServiceContext().getLocalMapStatsProvider().getLocalMapStatsImpl(getDistributedObjectName()) .incrementPutLatencyNanos(latencyNanos); } }
@Override protected void afterResponse() { final MapService mapService = getService(MapService.SERVICE_NAME); MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(parameters.name); if (mapContainer.getMapConfig().isStatisticsEnabled()) { LocalMapStatsProvider localMapStatsProvider = mapService.getMapServiceContext().getLocalMapStatsProvider(); localMapStatsProvider.getLocalMapStatsImpl(parameters.name).incrementOtherOperations(); } }