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 int
getAskedResources()
Get the number of asked resourcesint
getAskedResources(String siteName)
Get the number of asked resourcesvoid
increaseAskedResources(String siteName)
Increase the number of asked resourcesvoid
resetAllCount()
Reset all countersvoid
resetCount(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
-
-