Package java.util

Examples of java.util.Map.flushGroup()


                                        //System.out.println("newComponentPropertyHash:" + newComponentPropertyHash);
                                        if(oldComponentPropertyHash.intValue() != newComponentPropertyHash)
                                        {
                                          //System.out.println("Yes - clearing - must have changed something important:" + usedEntity);
                                          //cacheInstance.flushGroup(usedEntity);
                                          cacheInstance.flushGroup(getPooledString(usedEntity.hashCode()));
                                          //clearFileCacheForGroup(cacheInstance, usedEntity);
                                        }
                                        else
                                        {
                                          //System.out.println("Flushing content_" + currentPageMetaInfoContentId + "_ComponentStructure just to catch page itself");
View Full Code Here


                                          //System.out.println("Flushing content_" + currentPageMetaInfoContentId + "_ComponentStructure just to catch page itself");
                                          //cacheInstance.flushGroup("content_" + currentPageMetaInfoContentId + "_ComponentStructure");
                                          //System.out.println("Flushing content_" + contentId + "_ComponentStructure just to catch page itself");
                                          String componentStructureKey = "content_" + contentId + "_ComponentStructure";
                                          //cacheInstance.flushGroup(componentStructureKey);
                                          cacheInstance.flushGroup(getPooledString(componentStructureKey.hashCode()));
                                          cacheInstance.flushGroup(getPooledString(usedEntity.hashCode()));
                                        }
                                       
                                      }
                                      else if(usedEntity.startsWith("content_" + contentId + "_ComponentStructure:"))
View Full Code Here

                                          //cacheInstance.flushGroup("content_" + currentPageMetaInfoContentId + "_ComponentStructure");
                                          //System.out.println("Flushing content_" + contentId + "_ComponentStructure just to catch page itself");
                                          String componentStructureKey = "content_" + contentId + "_ComponentStructure";
                                          //cacheInstance.flushGroup(componentStructureKey);
                                          cacheInstance.flushGroup(getPooledString(componentStructureKey.hashCode()));
                                          cacheInstance.flushGroup(getPooledString(usedEntity.hashCode()));
                                        }
                                       
                                      }
                                      else if(usedEntity.startsWith("content_" + contentId + "_ComponentStructure:"))
                                      {
View Full Code Here

                                        //System.out.println("oldComponentPropertyHash:" + oldComponentPropertyHash);
                                        //System.out.println("newComponentPropertyHash:" + newComponentPropertyHash);
                                        if(oldComponentPropertyHash.intValue() != newComponentPropertyHash)
                                        {
                                          //System.out.println("Yes - clearing - must have changed order or added/subtracted components:" + usedEntity);
                                          cacheInstance.flushGroup(getPooledString(usedEntity.hashCode()));
                                          //cacheInstance.flushGroup(usedEntity);
                                        }
                                      }
   
                                    }
View Full Code Here

                                   
                                    try
                                    {
                                      String attributeKey = "content_" + contentId + "_" + changedAttributeName;
                                      //cacheInstance.flushGroup(attributeKey);
                                      cacheInstance.flushGroup(getPooledString(attributeKey.hashCode()));
                                      logger.warn("Cleared pageCache for " + getPooledString(attributeKey.hashCode()));
                                    }
                                  catch(Exception ex2)
                                  {
                                    logger.error("Got error trying to flushGroup 2:" + ex2.getMessage());
View Full Code Here

                            }
                            else
                            {
                              String attributeKey = "content_" + contentId + "_" + changedAttributeName;
                              //cacheInstance.flushGroup("content_" + contentId + "_" + changedAttributeName);
                              cacheInstance.flushGroup(getPooledString(attributeKey.hashCode()));
                              logger.info("Cleared pageCache for " + "content_" + contentId + "_" + changedAttributeName);
                            }
                          } 
                          //cacheInstance.flushGroup("content_" + contentId);
                        }
View Full Code Here

                        }
                        else
                        {
                          String contentTypeDefKey = "selectiveCacheUpdateNonApplicable_contentTypeDefinitionId_" + contentTypeDefinitionId;
                          //cacheInstance.flushGroup(contentTypeDefKey);
                          cacheInstance.flushGroup(contentTypeDefKey);
                          //System.out.println("Cleared for " + "content_" + contentId + " on cache " + cacheName);
                          String contentKey = "content_" + contentId;
                          cacheInstance.flushGroup(contentKey);
                          //cacheInstance.flushGroup(contentKey);
                        }
View Full Code Here

                          String contentTypeDefKey = "selectiveCacheUpdateNonApplicable_contentTypeDefinitionId_" + contentTypeDefinitionId;
                          //cacheInstance.flushGroup(contentTypeDefKey);
                          cacheInstance.flushGroup(contentTypeDefKey);
                          //System.out.println("Cleared for " + "content_" + contentId + " on cache " + cacheName);
                          String contentKey = "content_" + contentId;
                          cacheInstance.flushGroup(contentKey);
                          //cacheInstance.flushGroup(contentKey);
                        }

                        //t.printElapsedTime("Handled page cache");
                      //RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Handled page cache", t.getElapsedTime()); 
View Full Code Here

                    }
                    }
                   
                    if(cacheName.equals("componentPropertyCacheRepoGroups") || cacheName.equals("componentPropertyVersionIdCacheRepoGroups"))
                    {
                      cacheInstance.flushGroup("" + repositoryId);
                      logger.info("Clearing componentPropertyCacheRepoGroups for repo:" + repositoryId);
                    }

                    if(cacheName.equals("pageCacheExtra"))
                    {
View Full Code Here

                     
                      String entityKey = "" + entityId;
                      String contentEntityKey = "content_" + entityId;
                      //cacheInstance.flushGroup("" + entityId);
                      //cacheInstance.flushGroup(contentEntityKey);
                      cacheInstance.flushGroup(entityKey);
                      cacheInstance.flushGroup(contentEntityKey);
                      try
                      {
                        if(contentTypeDefinitionId != null)
                        {
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.