biz.hammurapi.metrics
Class XmlMeasurementCategoryFactory
java.lang.Object
biz.hammurapi.metrics.MeasurementCategoryFactory
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected java.io.File out
XmlMeasurementCategoryFactory
public XmlMeasurementCategoryFactory(java.io.File out)
- Parameters:
out
- Output file.
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.