Package org.ametys.site
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
-
-
Constructor Summary
Constructors Constructor Description CacheAccessCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAskedResources()Get the number of asked resourcesintgetAskedResources(String siteName)Get the number of asked resourcesvoidincreaseAskedResources(String siteName)Increase the number of asked resourcesvoidresetAllCount()Reset all countersvoidresetCount(String siteName)Reset count
-
-
-
Constructor Detail
-
CacheAccessCounter
public CacheAccessCounter()
-
-
Method Detail
-
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
-
-