Class ResourceStatisticsComponent
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.datasource.AbstractMyBatisDAO
-
- org.ametys.web.cache.monitoring.process.statistics.ResourceStatisticsComponent
-
- All Implemented Interfaces:
LogEnabled
,PluginAware
,Component
,Configurable
,Contextualizable
,Serviceable
public class ResourceStatisticsComponent extends AbstractMyBatisDAO
The cache monitoring updater. It updates the statistics in the monitoring database, given the new request entries.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
Avalon ROLE.-
Fields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager
-
-
Constructor Summary
Constructors Constructor Description ResourceStatisticsComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,Object>>
getPageElementCacheStats()
Get the raw data for the page elements cache statistics.List<Map<String,Object>>
getServerCacheStats(String siteName)
Get the raw data for the server cache statistics.void
purgeRawData()
Purge the processed raw request entries.void
updateStatistics()
Update the cache statistics tables.-
Methods inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_configureDatasource, _getDataSourceId, _getMyBatisConfiguration, configure, contextualize, getSession, getSession, reload, service, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
ResourceStatisticsComponent
public ResourceStatisticsComponent()
-
-
Method Detail
-
updateStatistics
public void updateStatistics()
Update the cache statistics tables.
-
purgeRawData
public void purgeRawData()
Purge the processed raw request entries.
-
getPageElementCacheStats
public List<Map<String,Object>> getPageElementCacheStats()
Get the raw data for the page elements cache statistics.- Returns:
- A list a map, each map representing a page stat entry
-
-