|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.hammurapi.metrics.MeasurementCategoryFactory
biz.hammurapi.metrics.SlicingMeasurementCategoryFactory
public class SlicingMeasurementCategoryFactory
Field Summary | |
---|---|
protected org.w3c.dom.Element |
configElement
|
Constructor Summary | |
---|---|
SlicingMeasurementCategoryFactory()
|
Method Summary | |
---|---|
void |
configure(org.w3c.dom.Node configNode,
Context context,
java.lang.ClassLoader classLoader)
Reads configuration from Node |
protected SlicingMeasurementConsumer |
createMeasurementConsumer(long tick,
boolean keepMeasurements,
int maxQueue)
Override this method to create a custom consumer. |
protected SliceConsumer |
createSliceConsumer()
Creates a consumer using DomConfigFactory |
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()
Invoked by container when component is not needed anymore. |
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 |
---|
protected org.w3c.dom.Element configElement
Constructor Detail |
---|
public SlicingMeasurementCategoryFactory()
Method Detail |
---|
public void start() throws ConfigurationException
Component
start
in interface Component
ConfigurationException
protected SliceConsumer createSliceConsumer() throws ConfigurationException
cxpa
- factory
-
ConfigurationException
javax.xml.transform.TransformerException
protected SlicingMeasurementConsumer createMeasurementConsumer(long tick, boolean keepMeasurements, int maxQueue) throws ConfigurationException
tick
- keepMeasurements
- maxQueue
- sliceConsumer
-
ConfigurationException
public void stop() throws ConfigurationException
Component
stop
in interface Component
ConfigurationException
public void configure(org.w3c.dom.Node configNode, Context context, java.lang.ClassLoader classLoader) throws ConfigurationException
DomConfigurable
Node
configure
in interface DomConfigurable
classLoader
- ClassLoader
ConfigurationException
public MeasurementConsumer getMeasurementConsumer(java.lang.String categoryName)
MeasurementCategoryFactory
getMeasurementConsumer
in class MeasurementCategoryFactory
public void setOwner(java.lang.Object owner)
Component
setOwner
in interface Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |