org.apache.cocoon.generation
Class StatusGenerator
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.xml.AbstractXMLProducer
|
+--org.apache.cocoon.generation.AbstractGenerator
|
+--org.apache.cocoon.generation.ComposerGenerator
|
+--org.apache.cocoon.generation.StatusGenerator
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.activity.Disposable, Generator, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, SitemapModelComponent, XMLProducer
- public class StatusGenerator
- extends ComposerGenerator
Generates an XML representation of the current status of Cocoon.
Potted DTD:
<!ELEMENT statusinfo (group|value)*>
<!ATTLIST statusinfo
date CDATA #IMPLIED
host CDATA #IMPLIED
>
<!ELEMENT group (group|value)*>
<!ATTLIST group
name CDATA #IMPLIED
>
<!ELEMENT value (line)+>
<!ATTLIST value
name CDATA #REQUIRED
<!ELEMENT line (#PCDATA)+>
>
- Version:
- CVS $Id: StatusGenerator.java,v 1.5.2.1 2002/10/22 03:53:45 vgritsenko Exp $
- Author:
- Paul Russell (Luminas Limited), Stefano Mazzocchi, Sébastien Kœchlin (iVision)
Field Summary |
protected static java.lang.String |
namespace
The XML namespace for the output document. |
protected StoreJanitor |
storejanitor
The StoreJanitor used to get cache statistics |
protected static java.lang.String |
xlinkNamespace
The XML namespace for xlink |
protected static java.lang.String |
xlinkPrefix
The namespace prefix for xlink namespace |
Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
Method Summary |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Set the current ComponentManager instance used by this
Composable .
|
void |
generate()
Generate the status information in XML format. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
storejanitor
protected StoreJanitor storejanitor
- The StoreJanitor used to get cache statistics
namespace
protected static final java.lang.String namespace
- The XML namespace for the output document.
xlinkNamespace
protected static final java.lang.String xlinkNamespace
- The XML namespace for xlink
xlinkPrefix
protected static final java.lang.String xlinkPrefix
- The namespace prefix for xlink namespace
StatusGenerator
public StatusGenerator()
compose
public void compose(org.apache.avalon.framework.component.ComponentManager manager)
throws org.apache.avalon.framework.component.ComponentException
- Set the current
ComponentManager
instance used by this
Composable
.
Need to get statistics about cache hits
- Overrides:
compose
in class ComposerGenerator
generate
public void generate()
throws org.xml.sax.SAXException
- Generate the status information in XML format.
- Throws:
org.xml.sax.SAXException
- when there is a problem creating the output SAX events.
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.