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 Type
    Method
    Description
    void
    createStat(SqlSession sqlSession)
    Creates and configure a statement with an insert query.
    int
    Returns the number of hits
    boolean
    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

      boolean statExists(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(SqlSession sqlSession)
      Creates and configure a statement with an insert query.
      Parameters:
      sqlSession - The sql session
    • updateStat

      void updateStat(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