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 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.
-
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
-