public class FrontFromHTTPServerResourceStatistics extends Object implements ResourceStatistics
Modifier and Type | Field and Description |
---|---|
private boolean |
_frontCacheable |
private boolean |
_frontCacheHit1 |
private boolean |
_frontCacheHit2 |
private String |
_frontPath |
private String |
_frontPathHash |
private String |
_frontSite |
private boolean |
_httpserverCacheHit |
private String |
_httpserverPath |
private String |
_httpserverPathHash |
private String |
_httpserverSite |
private int |
_newHits |
Constructor and Description |
---|
FrontFromHTTPServerResourceStatistics(String httpserverSite,
String httpserverPathHash,
String httpserverPath,
boolean httpserverCacheHit,
String frontSite,
String frontPathHash,
String frontPath,
boolean frontCacheable,
boolean frontCacheHit1,
boolean frontCacheHit2,
int newHits)
Creates a statistic
|
Modifier and Type | Method and Description |
---|---|
private int |
_getFrontCacheHits1() |
private int |
_getFrontCacheHits2() |
private int |
_getServerCacheHits() |
void |
createStat(SqlSession sqlSession)
Creates and configure a statement with an insert query.
|
int |
getHits()
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.
|
private final String _httpserverSite
private final String _httpserverPath
private final String _httpserverPathHash
private final boolean _httpserverCacheHit
private final String _frontSite
private final String _frontPath
private final String _frontPathHash
private final boolean _frontCacheable
private final boolean _frontCacheHit1
private final boolean _frontCacheHit2
private final int _newHits
public FrontFromHTTPServerResourceStatistics(String httpserverSite, String httpserverPathHash, String httpserverPath, boolean httpserverCacheHit, String frontSite, String frontPathHash, String frontPath, boolean frontCacheable, boolean frontCacheHit1, boolean frontCacheHit2, int newHits)
httpserverSite
- The httpserver sitehttpserverPathHash
- a consistent hash of the httpserver path.httpserverPath
- The httpserver pathhttpserverCacheHit
- The httpserver cache hitfrontSite
- The front sitefrontPathHash
- a consistent hash of the front path.frontPath
- The front pathfrontCacheable
- The front cacheable statusfrontCacheHit1
- The front cache hit 1 statusfrontCacheHit2
- The front cache hit 2 statusnewHits
- The hitspublic boolean statExists(SqlSession sqlSession)
ResourceStatistics
statExists
in interface ResourceStatistics
sqlSession
- The sql sessionpublic void createStat(SqlSession sqlSession)
ResourceStatistics
createStat
in interface ResourceStatistics
sqlSession
- The sql sessionpublic void updateStat(SqlSession sqlSession)
ResourceStatistics
updateStat
in interface ResourceStatistics
sqlSession
- The sql sessionpublic int getHits()
ResourceStatistics
getHits
in interface ResourceStatistics
private int _getServerCacheHits()
private int _getFrontCacheHits1()
private int _getFrontCacheHits2()