public void clearNearCache(String mapName) { if (!isNearCacheEnabled(mapName)) { return; } final NearCache nearCache = nearCacheMap.get(mapName); if (nearCache != null) { nearCache.clear(); } }
public void reset() { final PartitionContainer[] containers = partitionContainers; for (PartitionContainer container : containers) { if (container != null) { container.clear(); } } for (NearCache nearCache : nearCacheMap.values()) { nearCache.clear(); } }
public void shutdown(boolean terminate) { if (!terminate) { flushMapsBeforeShutdown(); destroyMapStores(); final PartitionContainer[] containers = partitionContainers; for (PartitionContainer container : containers) { if (container != null) { container.clear(); } } for (NearCache nearCache : nearCacheMap.values()) { nearCache.clear(); } nearCacheMap.clear(); mapContainers.clear(); } }
public void destroyDistributedObject(String name) { MapContainer mapContainer = mapContainers.remove(name); if (mapContainer != null) { if (mapContainer.isNearCacheEnabled()) { NearCache nearCache = nearCacheMap.remove(name); if (nearCache != null) { nearCache.clear(); } } mapContainer.shutDownMapStoreScheduledExecutor(); } final PartitionContainer[] containers = partitionContainers; for (PartitionContainer container : containers) { if (container != null) { container.destroyMap(name); } } nodeEngine.getEventService().deregisterAllListeners(SERVICE_NAME, name); }