Class ServersCacheStatsGenerator.FrontFromHTTPServerStatsEntry
- java.lang.Object
-
- org.ametys.web.cache.monitoring.ui.ServersCacheStatsGenerator.FrontFromFrontStatsEntry
-
- org.ametys.web.cache.monitoring.ui.ServersCacheStatsGenerator.FrontFromHTTPServerStatsEntry
-
- Enclosing class:
- ServersCacheStatsGenerator
protected class ServersCacheStatsGenerator.FrontFromHTTPServerStatsEntry extends ServersCacheStatsGenerator.FrontFromFrontStatsEntry
Object model representing an entry of stats for a front resource, coming from httpserver
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_serverCacheHits
server cache hitsprotected int
_serverHits
server hitsprotected String
_serverPath
Server pathprotected String
_serverSite
Server site name-
Fields inherited from class org.ametys.web.cache.monitoring.ui.ServersCacheStatsGenerator.FrontFromFrontStatsEntry
_frontCacheable, _frontCacheHits1, _frontCacheHits2, _frontHits, _frontPath, _frontSite
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FrontFromHTTPServerStatsEntry(Map<String,Object> data)
Ctor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getSanitizedPath()
Returns a sanitized path given the different path properties of this instance.protected boolean
hasFrontInfo()
Indicates if this instance has front(-office) information.protected void
merge(ServersCacheStatsGenerator.FrontFromHTTPServerStatsEntry that)
Merge this instance ofFrontFromHTTPServerStatsEntry
with another instance ofFrontFromHTTPServerStatsEntry
-
-
-
Field Detail
-
_serverSite
protected final String _serverSite
Server site name
-
_serverPath
protected final String _serverPath
Server path
-
_serverHits
protected int _serverHits
server hits
-
_serverCacheHits
protected int _serverCacheHits
server cache hits
-
-
Constructor Detail
-
FrontFromHTTPServerStatsEntry
protected FrontFromHTTPServerStatsEntry(Map<String,Object> data)
Ctor- Parameters:
data
- map of raw data object.
-
-
Method Detail
-
merge
protected void merge(ServersCacheStatsGenerator.FrontFromHTTPServerStatsEntry that)
Merge this instance ofFrontFromHTTPServerStatsEntry
with another instance ofFrontFromHTTPServerStatsEntry
- Parameters:
that
- the stats entry to merhe with
-
getSanitizedPath
protected String getSanitizedPath()
Returns a sanitized path given the different path properties of this instance.- Returns:
- The sanitized path
-
hasFrontInfo
protected boolean hasFrontInfo()
Indicates if this instance has front(-office) information.- Returns:
- a boolean
-
-