Class HTTPServerOnlyResourceStatistics

    • Constructor Detail

      • HTTPServerOnlyResourceStatistics

        public HTTPServerOnlyResourceStatistics​(String site,
                                                String hashPath,
                                                String path,
                                                boolean cacheHit,
                                                int newHits)
        Creates a statistics
        Parameters:
        site - The site
        hashPath - a consistent hash of the path.
        path - The path
        cacheHit - The cache hit status
        newHits - The number of hits
    • Method Detail

      • statExists

        public boolean statExists​(org.apache.ibatis.session.SqlSession sqlSession)
        Description copied from interface: ResourceStatistics
        Creates and configure a statement with a find query.
        Specified by:
        statExists in interface ResourceStatistics
        Parameters:
        sqlSession - The sql session
        Returns:
        A non null ready to execute prepared statement
      • createStat

        public void createStat​(org.apache.ibatis.session.SqlSession sqlSession)
        Description copied from interface: ResourceStatistics
        Creates and configure a statement with an insert query.
        Specified by:
        createStat in interface ResourceStatistics
        Parameters:
        sqlSession - The sql session
      • updateStat

        public void updateStat​(org.apache.ibatis.session.SqlSession sqlSession)
        Description copied from interface: ResourceStatistics
        Creates and configure a statement with an update query.
        Specified by:
        updateStat in interface ResourceStatistics
        Parameters:
        sqlSession - The sql session