Package org.ametys.web.site
Class SiteStatisticsGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Provides some statistics about a
Site
, such as :- Number of pages
- Number of live contents
- Number of orphaned contents
- Number of external contents
-
Field Summary
Modifier and TypeFieldDescriptionprotected PageHelper
The page cache helper.protected ServiceExtensionPoint
The service extension point.protected SiteManager
The site manager.Fields 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
Modifier and TypeMethodDescriptionprotected void
_saxSitemap
(Sitemap sitemap) SAX statistics on a sitemap.void
generate()
protected void
SAX statistics on a site.void
service
(ServiceManager sManager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, 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
-
_siteManager
The site manager. -
_serviceExtPt
The service extension point. -
_pageCacheHelper
The page cache helper.
-
-
Constructor Details
-
SiteStatisticsGenerator
public SiteStatisticsGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
saxSite
SAX statistics on a site.- Parameters:
site
- the site to SAX statistics on.- Throws:
SAXException
- if an error occurs while saxingProcessingException
- if an error occurs
-
_saxSitemap
SAX statistics on a sitemap.- Parameters:
sitemap
- the sitemap to SAX statistics on.- Throws:
SAXException
- if an error occurs while saxing
-