Beispiel #1
0
 public void reset() {
   final PartitionContainer[] containers = partitionContainers;
   for (PartitionContainer container : containers) {
     if (container != null) {
       container.clear();
     }
   }
   for (NearCache nearCache : nearCacheMap.values()) {
     nearCache.clear();
   }
 }
Beispiel #2
0
 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();
   }
 }