biz.hammurapi.metrics
Class XmlMeasurementCategoryFactory

java.lang.Object
  extended by biz.hammurapi.metrics.MeasurementCategoryFactory
      extended by biz.hammurapi.metrics.XmlMeasurementCategoryFactory
All Implemented Interfaces:
Component, DomSerializable
Direct Known Subclasses:
HtmlMeasurementCategoryFactory

public class XmlMeasurementCategoryFactory
extends MeasurementCategoryFactory
implements Component, DomSerializable

Author:
Pavel Vlasov

Field Summary
protected  java.io.File out
           
 
Constructor Summary
XmlMeasurementCategoryFactory(java.io.File out)
           
 
Method Summary
 MeasurementConsumer getMeasurementConsumer(java.lang.String categoryName)
          Subclasses shall implement this method to bind sinks to category
 void setOwner(java.lang.Object owner)
          Plugs the component into container and naming bus.
 void start()
          Invoked by container before the first use.
 void stop()
          Saves collected metrics to XML.
 void toDom(org.w3c.dom.Element holder)
           
 
Methods inherited from class biz.hammurapi.metrics.MeasurementCategoryFactory
getCategory, getCategory, getTimeIntervalCategory, getTimeIntervalCategory, register, register, register, register, unregister, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected java.io.File out
Constructor Detail

XmlMeasurementCategoryFactory

public XmlMeasurementCategoryFactory(java.io.File out)
Parameters:
out - Output file.
Method Detail

getMeasurementConsumer

public MeasurementConsumer getMeasurementConsumer(java.lang.String categoryName)
Description copied from class: MeasurementCategoryFactory
Subclasses shall implement this method to bind sinks to category

Specified by:
getMeasurementConsumer in class MeasurementCategoryFactory
Returns:
sink for the category, can be null.

start

public void start()
           throws ConfigurationException
Description copied from interface: Component
Invoked by container before the first use. Component shall perform initialization in this method.

Specified by:
start in interface Component
Throws:
ConfigurationException

stop

public void stop()
          throws ConfigurationException
Saves collected metrics to XML.

Specified by:
stop in interface Component
Throws:
ConfigurationException

toDom

public void toDom(org.w3c.dom.Element holder)
Specified by:
toDom in interface DomSerializable

setOwner

public void setOwner(java.lang.Object owner)
Description copied from interface: Component
Plugs the component into container and naming bus.

Specified by:
setOwner in interface Component


Copyright © 2003 Hammurapi Group. All Rights Reserved.