Class CacheAccessCounter

java.lang.Object
org.ametys.site.CacheAccessCounter
All Implemented Interfaces:
Component

public class CacheAccessCounter extends Object implements Component
Helper for site cache logger
  • Field Details

    • ROLE

      public static final String ROLE
      Avalon Role
  • Constructor Details

  • Method Details

    • increaseAskedResources

      public void increaseAskedResources(String siteName)
      Increase the number of asked resources
      Parameters:
      siteName - the site name
    • getAskedResources

      public int getAskedResources(String siteName)
      Get the number of asked resources
      Parameters:
      siteName - the site name
      Returns:
      the number of asked resources
    • getAskedResources

      public int getAskedResources()
      Get the number of asked resources
      Returns:
      the number of asked resources
    • resetCount

      public void resetCount(String siteName)
      Reset count
      Parameters:
      siteName - the site name
    • resetAllCount

      public void resetAllCount()
      Reset all counters