Interface ResourceStatistics
- All Known Implementing Classes:
FrontFromHTTPServerResourceStatistics,FrontOnlyResourceStatistics,HTTPServerOnlyResourceStatistics,PageElementResourceStatistics,PageResourceStatistics
public interface ResourceStatistics
A ResourceCacheStats is an object that holds cache statistics coming from the
monitoring database or to be inserted/updated in the monitoring database.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateStat(SqlSession sqlSession) Creates and configure a statement with an insert query.intgetHits()Returns the number of hitsbooleanstatExists(SqlSession sqlSession) Creates and configure a statement with a find query.voidupdateStat(SqlSession sqlSession) Creates and configure a statement with an update query.
-
Method Details
-
statExists
Creates and configure a statement with a find query.- Parameters:
sqlSession- The sql session- Returns:
- A non null ready to execute prepared statement
-
createStat
Creates and configure a statement with an insert query.- Parameters:
sqlSession- The sql session
-
updateStat
Creates and configure a statement with an update query.- Parameters:
sqlSession- The sql session
-
getHits
int getHits()Returns the number of hits- Returns:
- int the hits
-