org.weborganic.bastille.system
Class BerliozStatisticsCollector

java.lang.Object
  extended by org.weborganic.bastille.system.BerliozStatisticsCollector
All Implemented Interfaces:
XMLWritable, GeneratorListener

public final class BerliozStatisticsCollector
extends Object
implements GeneratorListener, XMLWritable

Collects basic statistics about generators.


Nested Class Summary
static class BerliozStatisticsCollector.BasicStats
          Holds basic statistics about a generator.
 
Method Summary
 void clear()
          Clears all the statistics.
 void generate(Service service, ContentGenerator generator, ContentStatus status, long etag, long process)
           
static BerliozStatisticsCollector getInstance()
           
 void toXML(XMLWriter xml)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generate

public void generate(Service service,
                     ContentGenerator generator,
                     ContentStatus status,
                     long etag,
                     long process)
Specified by:
generate in interface GeneratorListener

clear

public void clear()
Clears all the statistics.


getInstance

public static BerliozStatisticsCollector getInstance()
Returns:
The singleton instance.

toXML

public void toXML(XMLWriter xml)
           throws IOException
Specified by:
toXML in interface XMLWritable
Throws:
IOException