Package org.ametys.site
Class CacheAccessCounter
java.lang.Object
org.ametys.site.CacheAccessCounter
- All Implemented Interfaces:
Component
Helper for site cache logger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of asked resourcesintgetAskedResources(String siteName) Get the number of asked resourcesvoidincreaseAskedResources(String siteName) Increase the number of asked resourcesvoidReset all countersvoidresetCount(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
-