Class FrontFromHTTPServerResourceStatistics
java.lang.Object
org.ametys.web.cache.monitoring.process.statistics.impl.FrontFromHTTPServerResourceStatistics
- All Implemented Interfaces:
ResourceStatistics
Front from apache cache stats objects
-
Constructor Summary
ConstructorDescriptionFrontFromHTTPServerResourceStatistics
(String httpserverSite, String httpserverPathHash, String httpserverPath, boolean httpserverCacheHit, String frontSite, String frontPathHash, String frontPath, boolean frontCacheable, boolean frontCacheHit1, boolean frontCacheHit2, int newHits) Creates a statistic -
Method Summary
Modifier and TypeMethodDescriptionvoid
createStat
(SqlSession sqlSession) Creates and configure a statement with an insert query.int
getHits()
Returns the number of hitsboolean
statExists
(SqlSession sqlSession) Creates and configure a statement with a find query.void
updateStat
(SqlSession sqlSession) Creates and configure a statement with an update query.
-
Constructor Details
-
FrontFromHTTPServerResourceStatistics
public FrontFromHTTPServerResourceStatistics(String httpserverSite, String httpserverPathHash, String httpserverPath, boolean httpserverCacheHit, String frontSite, String frontPathHash, String frontPath, boolean frontCacheable, boolean frontCacheHit1, boolean frontCacheHit2, int newHits) Creates a statistic- Parameters:
httpserverSite
- The httpserver sitehttpserverPathHash
- a consistent hash of the httpserver path.httpserverPath
- The httpserver pathhttpserverCacheHit
- The httpserver cache hitfrontSite
- The front sitefrontPathHash
- a consistent hash of the front path.frontPath
- The front pathfrontCacheable
- The front cacheable statusfrontCacheHit1
- The front cache hit 1 statusfrontCacheHit2
- The front cache hit 2 statusnewHits
- The hits
-
-
Method Details
-
statExists
Description copied from interface:ResourceStatistics
Creates and configure a statement with a find query.- Specified by:
statExists
in interfaceResourceStatistics
- Parameters:
sqlSession
- The sql session- Returns:
- A non null ready to execute prepared statement
-
createStat
Description copied from interface:ResourceStatistics
Creates and configure a statement with an insert query.- Specified by:
createStat
in interfaceResourceStatistics
- Parameters:
sqlSession
- The sql session
-
updateStat
Description copied from interface:ResourceStatistics
Creates and configure a statement with an update query.- Specified by:
updateStat
in interfaceResourceStatistics
- Parameters:
sqlSession
- The sql session
-
getHits
Description copied from interface:ResourceStatistics
Returns the number of hits- Specified by:
getHits
in interfaceResourceStatistics
- Returns:
- int the hits
-