public class SiteStatisticsGenerator extends ServiceableGenerator
Site
, such as :Modifier and Type | Field and Description |
---|---|
protected PageHelper |
_pageCacheHelper
The page cache helper.
|
protected ServiceExtensionPoint |
_serviceExtPt
The service extension point.
|
protected SiteManager |
_siteManager
The site manager.
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
SiteStatisticsGenerator() |
Modifier and Type | Method and Description |
---|---|
private void |
_processPages(PagesContainer pages,
Map<String,Long> values) |
private void |
_processResources(TraversableAmetysObject resourceContainer,
HashMap<String,Long> values) |
private void |
_saxContents(Site site) |
private void |
_saxResources(Site site) |
protected void |
_saxSitemap(Sitemap sitemap)
SAX statistics on a sitemap.
|
void |
generate() |
protected void |
saxSite(Site site)
SAX statistics on a site.
|
void |
service(ServiceManager sManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected SiteManager _siteManager
protected ServiceExtensionPoint _serviceExtPt
protected PageHelper _pageCacheHelper
public SiteStatisticsGenerator()
public void service(ServiceManager sManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void saxSite(Site site) throws SAXException, ProcessingException
site
- the site to SAX statistics on.SAXException
- if an error occurs while saxingProcessingException
- if an error occursprotected void _saxSitemap(Sitemap sitemap) throws SAXException
sitemap
- the sitemap to SAX statistics on.SAXException
- if an error occurs while saxingprivate void _processPages(PagesContainer pages, Map<String,Long> values)
private void _saxContents(Site site) throws SAXException, RepositoryException
SAXException
RepositoryException
private void _saxResources(Site site) throws SAXException
SAXException
private void _processResources(TraversableAmetysObject resourceContainer, HashMap<String,Long> values)