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
The cache monitoring updater. It updates the statistics in the monitoring database, given the new request entries.
-
Field Summary
Fields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the raw data for the page elements cache statistics.getServerCacheStats
(String siteName) Get the raw data for the server cache statistics.void
Purge the processed raw request entries.void
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
-
Field Details
-
ROLE
Avalon ROLE.
-
-
Constructor Details
-
ResourceStatisticsComponent
public ResourceStatisticsComponent()
-
-
Method Details
-
updateStatistics
Update the cache statistics tables. -
purgeRawData
Purge the processed raw request entries. -
getPageElementCacheStats
Get the raw data for the page elements cache statistics.- Returns:
- A list a map, each map representing a page stat entry
-
getServerCacheStats
Get the raw data for the server cache statistics.- Parameters:
siteName
- The name of the site for which data will be extracted- Returns:
- A list a map, each map representing a raw stat entry
-