Examples of flushAll()


Examples of java.util.Map.flushAll()

                                      logger.warn("Cleared pageCache for " + getPooledString(attributeKey.hashCode()));
                                    }
                                  catch(Exception ex2)
                                  {
                                    logger.error("Got error trying to flushGroup 2:" + ex2.getMessage());
                                    cacheInstance.flushAll();
                                  }
                                    break outer;
                                }
                                t.printElapsedTime("Handled group entries");
                                //RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Handled group entries", t.getElapsedTime());
View Full Code Here

Examples of java.util.Map.flushAll()

                    }
                    catch (Exception e2)
                    {
                      cacheInstance.putInCache("recacheAllMark", "" + System.currentTimeMillis());
                      logger.warn("Flushing all as it was a missing entity - was probably a delete: " + e2.getMessage());
                      cacheInstance.flushAll();
                  }
                  }
                  else if(entity.indexOf("MediumContentCategoryImpl") > 0)
                  {
                    logger.info("Special handling - no handling");
View Full Code Here

Examples of java.util.Map.flushAll()

                      ContentVO contentVO = ContentController.getContentController().getContentVOWithId(new Integer(contentId));
                      if(contentVO != null && contentVO.getContentTypeDefinitionId() != null)
                      {
                        ContentTypeDefinitionVO ctdVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithId(contentVO.getContentTypeDefinitionId());
                        if(ctdVO.getName().equals("Meta info"))
                          cacheInstance.flushAll();
                        else
                        {
                          if(cacheName.equalsIgnoreCase("componentEditorCache") && (ctdVO.getName().equals("HTMLTemplate") || ctdVO.getName().equals("PagePartTemplate")))
                          {
                            cacheInstance.flushAll(); //CacheController.clearCache("componentEditorCache");
View Full Code Here

Examples of java.util.Map.flushAll()

                          cacheInstance.flushAll();
                        else
                        {
                          if(cacheName.equalsIgnoreCase("componentEditorCache") && (ctdVO.getName().equals("HTMLTemplate") || ctdVO.getName().equals("PagePartTemplate")))
                          {
                            cacheInstance.flushAll(); //CacheController.clearCache("componentEditorCache");
                          }
                          else
                            logger.info("No need to clear page stuff");
                        }
                      }
View Full Code Here

Examples of java.util.Map.flushAll()

                        logger.info("WHOOOAAAAAAAAAA.. clearing all... on " + cacheName + ":" + entity);
                      //System.out.println("selectiveCacheUpdate:" + selectiveCacheUpdate);
                      //System.out.println("entity:" + entity);
                      //System.out.println("cacheName:" + cacheName);
                      //logger.info("Flushing all:" + cacheName);
                      cacheInstance.flushAll();
                      if(logger.isInfoEnabled())
                        logger.info("clearing:" + e.getKey());
                    //t.printElapsedTime("WHOOOAAAAAAAAAA.. clearing all... ", 10);
                  }
                  }
View Full Code Here

Examples of java.util.Map.flushAll()

                    return;
                  }
             
              RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Getting lock for flushing " + cacheName, t.getElapsedTime());
                  */
            cacheInstance.flushAll();
              cacheInstance.destroy();

              //RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Flushing " + cacheName, t.getElapsedTime());
          }
            /*
 
View Full Code Here

Examples of java.util.Map.flushAll()

                    return;
                  }

              RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Getting lock for flushing " + cacheName, t.getElapsedTime());
            */
            cacheInstance.flushAll();
           
              //RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Flushing " + cacheName, t.getElapsedTime());
          }
            /*
                finally
View Full Code Here

Examples of java.util.Map.flushAll()

            else
            {
                GeneralCacheAdministrator cacheInstance = (GeneralCacheAdministrator)e.getValue();
              synchronized(cacheInstance)
              {
                  cacheInstance.flushAll();
              }
            }
            logger.info("Cleared cache:" + e.getKey());
           
              i.remove();
View Full Code Here

Examples of java.util.Map.flushAll()

                        logger.info("Clearing assetUrlCacheWithGroups for content:" + "content_" + contentId);
                      }
                      catch (Exception e2)
                      {
                        logger.warn("Flushing assetUrlCacheWithGroups as it was a missing entity - was probably a delete");
                        cacheInstance.flushAll();
                    }
                      //t.printElapsedTime("assetUrlCacheWithGroups");
                    }
                    else if(cacheName.equals("childPagesCache") || cacheName.equals("childSiteNodesCache"))
                    {
View Full Code Here

Examples of java.util.Map.flushAll()

                        }
                      }
                      catch (Exception e2)
                      {
                        logger.warn("Flushing childPagesCache as it was a missing entity - was probably a delete");
                        cacheInstance.flushAll();
                    }
                      //t.printElapsedTime("childPagesCache");
                    }
                    else if(cacheName.equals("matchingContentsCache"))
                    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.