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(); } }