Class FrontFromHTTPServerResourceStatisticsFactory
- java.lang.Object
-
- org.ametys.web.cache.monitoring.process.statistics.impl.FrontFromHTTPServerResourceStatisticsFactory
-
- All Implemented Interfaces:
ResourceStatisticsFactory
public final class FrontFromHTTPServerResourceStatisticsFactory extends Object implements ResourceStatisticsFactory
The factory for FrontFromHTTPServerResourceStatistics
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
__LOGGER
private static FrontFromHTTPServerResourceStatisticsFactory
_instance
-
Constructor Summary
Constructors Modifier Constructor Description private
FrontFromHTTPServerResourceStatisticsFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FrontFromHTTPServerResourceStatisticsFactory
getInstance()
Get the unique instanceList<ResourceStatistics>
getResourceAccessToProcess(org.apache.ibatis.session.SqlSession sqlSession)
Get the list of existing resource accessint
markResourcesAsProcessed(org.apache.ibatis.session.SqlSession sqlSession)
Mark the statistics of this kind as processedint
purgeRawData(org.apache.ibatis.session.SqlSession sqlSession)
Purge the processed raw data related to this kind of statistics.
-
-
-
Field Detail
-
_instance
private static FrontFromHTTPServerResourceStatisticsFactory _instance
-
__LOGGER
private static org.slf4j.Logger __LOGGER
-
-
Constructor Detail
-
FrontFromHTTPServerResourceStatisticsFactory
private FrontFromHTTPServerResourceStatisticsFactory()
-
-
Method Detail
-
getInstance
public static FrontFromHTTPServerResourceStatisticsFactory getInstance()
Get the unique instance- Returns:
- A non null instance
-
getResourceAccessToProcess
public List<ResourceStatistics> getResourceAccessToProcess(org.apache.ibatis.session.SqlSession sqlSession)
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
public int markResourcesAsProcessed(org.apache.ibatis.session.SqlSession sqlSession)
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
public int purgeRawData(org.apache.ibatis.session.SqlSession sqlSession)
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.
-
-