Class HTTPServerOnlyResourceStatisticsFactory
java.lang.Object
org.ametys.web.cache.monitoring.process.statistics.impl.HTTPServerOnlyResourceStatisticsFactory
- All Implemented Interfaces:
ResourceStatisticsFactory
public final class HTTPServerOnlyResourceStatisticsFactory
extends Object
implements ResourceStatisticsFactory
The factory for HTTPServerOnlyResourceStatistics
-
Method Summary
Modifier and TypeMethodDescriptionGet the unique instancegetResourceAccessToProcess
(SqlSession sqlSession) Get the list of existing resource accessint
markResourcesAsProcessed
(SqlSession sqlSession) Mark the statistics of this kind as processedint
purgeRawData
(SqlSession sqlSession) Purge the processed raw data related to this kind of statistics.
-
Method Details
-
getInstance
Get the unique instance- Returns:
- A non null instance
-
getResourceAccessToProcess
Description copied from interface:ResourceStatisticsFactory
Get the list of existing resource access- Specified by:
getResourceAccessToProcess
in interfaceResourceStatisticsFactory
- Parameters:
sqlSession
- The sql session- Returns:
- The non null list
-
markResourcesAsProcessed
Description copied from interface:ResourceStatisticsFactory
Mark the statistics of this kind as processed- Specified by:
markResourcesAsProcessed
in interfaceResourceStatisticsFactory
- Parameters:
sqlSession
- The sql session- Returns:
- The number of resources processed
-
purgeRawData
Description copied from interface:ResourceStatisticsFactory
Purge the processed raw data related to this kind of statistics.- Specified by:
purgeRawData
in interfaceResourceStatisticsFactory
- Parameters:
sqlSession
- The sql session- Returns:
- The number of purged rows.
-