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 SummaryFieldsFields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO_manager
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the raw data for the page elements cache statistics.getServerCacheStats(String siteName) Get the raw data for the server cache statistics.voidPurge the processed raw request entries.voidUpdate the cache statistics tables.Methods inherited from class org.ametys.core.datasource.AbstractMyBatisDAO_configureDatasource, _getDataSourceId, _getMyBatisConfiguration, configure, contextualize, getSession, getSession, reload, service, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabledgetLogger, setLogger
- 
Field Details- 
ROLEAvalon ROLE.
 
- 
- 
Constructor Details- 
ResourceStatisticsComponentpublic ResourceStatisticsComponent()
 
- 
- 
Method Details- 
updateStatisticsUpdate the cache statistics tables.
- 
purgeRawDataPurge the processed raw request entries.
- 
getPageElementCacheStatsGet the raw data for the page elements cache statistics.- Returns:
- A list a map, each map representing a page stat entry
 
- 
getServerCacheStatsGet 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
 
 
-