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 SummaryFields Modifier and Type Field Description static StringROLEAvalon ROLE.- 
Fields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO_manager
 
- 
 - 
Constructor SummaryConstructors Constructor Description ResourceStatisticsComponent()
 - 
Method SummaryAll 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.voidpurgeRawData()Purge the processed raw request entries.voidupdateStatistics()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.AbstractLogEnabledgetLogger, setLogger
 
- 
 
- 
- 
- 
Constructor Detail- 
ResourceStatisticsComponentpublic ResourceStatisticsComponent() 
 
- 
 - 
Method Detail- 
updateStatisticspublic void updateStatistics() Update the cache statistics tables.
 - 
purgeRawDatapublic void purgeRawData() Purge the processed raw request entries.
 - 
getPageElementCacheStatspublic 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
 
 
- 
 
-