public class ResourceStatisticsComponent extends AbstractMyBatisDAO
Modifier and Type | Field and Description |
---|---|
static String |
ROLE
Avalon ROLE.
|
_manager
Constructor and Description |
---|
ResourceStatisticsComponent() |
Modifier and Type | Method and Description |
---|---|
private int |
_update(String logName,
ResourceStatisticsFactory factory) |
private int |
_updateCacheStats(SqlSession sqlSession,
List<ResourceStatistics> resourceStatisticsList) |
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.
|
_configureDatasource, _getDataSourceId, _getMyBatisConfiguration, configure, contextualize, getSession, getSession, reload, service, setPluginInfo
getLogger, setLogger
public ResourceStatisticsComponent()
public void updateStatistics()
private int _update(String logName, ResourceStatisticsFactory factory)
private int _updateCacheStats(SqlSession sqlSession, List<ResourceStatistics> resourceStatisticsList)
public void purgeRawData()
public List<Map<String,Object>> getPageElementCacheStats()