Class ServersCacheStatsGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.web.cache.monitoring.ui.ServersCacheStatsGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Cache stats generator grouping data collected across each server cache (http
server/front/back)
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Object model representing an entry of stats for a back resource (ie.protected class
Object model representing an entry of stats for a front resource, coming from the Front (direct request to tomcat, bypassing any HTTP server if any).protected class
Object model representing an entry of stats for a front resource, coming from httpserverprotected class
Object model representing a raw entry of stats retrieved through the DB. -
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
ServersCacheStatsGenerator.BackStatsEntry> Map containing back stats entries classified by pathMultimap containing (only) front stats entries classified by site name and pathMultimap containing httpserver stats entries classified by site name and pathMultimaps representing the all the paths to the resources in a recursive way.This multimap associates site names to a list of prefix.protected ResourceStatisticsComponent
Resource statistics componentprotected SiteManager
Ametys resolverprotected static final String[]
List of paths used to during the sanitize process of the server pathFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Field Details
-
_SPECIAL_PATH_PREFIXS
List of paths used to during the sanitize process of the server path -
_resourceStatisticsCmp
Resource statistics component -
_siteManager
Ametys resolver -
_pathSanitizer
This multimap associates site names to a list of prefix. This is needed to sanitize the server path. -
_pathMaps
Multimaps representing the all the paths to the resources in a recursive way. The map key's are the site names. -
_fromHTTPServerStats
protected Map<String,Map<String, _fromHTTPServerStatsServersCacheStatsGenerator.FrontFromHTTPServerStatsEntry>> Multimap containing httpserver stats entries classified by site name and path -
_fromFrontOnlyStats
protected Map<String,Map<String, _fromFrontOnlyStatsServersCacheStatsGenerator.FrontFromFrontStatsEntry>> Multimap containing (only) front stats entries classified by site name and path -
_backStats
Map containing back stats entries classified by path
-
-
Constructor Details
-
ServersCacheStatsGenerator
public ServersCacheStatsGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
recycle
- Specified by:
recycle
in interfaceRecyclable
- Overrides:
recycle
in classAbstractGenerator
-