Package org.ametys.site
Class CacheAccessCounter
java.lang.Object
org.ametys.site.CacheAccessCounter
- All Implemented Interfaces:
Component
Helper for site cache logger
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the number of asked resourcesint
getAskedResources
(String siteName) Get the number of asked resourcesvoid
increaseAskedResources
(String siteName) Increase the number of asked resourcesvoid
Reset all countersvoid
resetCount
(String siteName) Reset count
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
CacheAccessCounter
public CacheAccessCounter()
-
-
Method Details
-
increaseAskedResources
Increase the number of asked resources- Parameters:
siteName
- the site name
-
getAskedResources
Get the number of asked resources- Parameters:
siteName
- the site name- Returns:
- the number of asked resources
-
getAskedResources
Get the number of asked resources- Returns:
- the number of asked resources
-
resetCount
Reset count- Parameters:
siteName
- the site name
-
resetAllCount
Reset all counters
-