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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createStat(org.apache.ibatis.session.SqlSession sqlSession)
Creates and configure a statement with an insert query.int
getHits()
Returns the number of hitsboolean
statExists(org.apache.ibatis.session.SqlSession sqlSession)
Creates and configure a statement with a find query.void
updateStat(org.apache.ibatis.session.SqlSession sqlSession)
Creates and configure a statement with an update query.
-
-
-
Method Detail
-
statExists
boolean statExists(org.apache.ibatis.session.SqlSession sqlSession)
Creates and configure a statement with a find query.- Parameters:
sqlSession
- The sql session- Returns:
- A non null ready to execute prepared statement
-
createStat
void createStat(org.apache.ibatis.session.SqlSession sqlSession)
Creates and configure a statement with an insert query.- Parameters:
sqlSession
- The sql session
-
updateStat
void updateStat(org.apache.ibatis.session.SqlSession sqlSession)
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
-
-