Package org.ow2.clif.datacollector.lib
Class AbstractProbeDataCollector
- java.lang.Object
-
- org.ow2.clif.datacollector.lib.AbstractDataCollector
-
- org.ow2.clif.datacollector.lib.AbstractProbeDataCollector
-
- All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController,DataCollectorAdmin,DataCollectorWrite
- Direct Known Subclasses:
DataCollector,DataCollector,DataCollector,DataCollector,DataCollector,DataCollector,DataCollector
public abstract class AbstractProbeDataCollector extends AbstractDataCollector
Data collector generic implementation computing statistical values for probes generating ProbeEvent-derived events.- Author:
- Bruno Dillenseger
-
-
Field Summary
Fields Modifier and Type Field Description protected longsamplesprotected long[]stats-
Fields inherited from class org.ow2.clif.datacollector.lib.AbstractDataCollector
sws
-
Fields inherited from interface org.ow2.clif.datacollector.api.DataCollectorAdmin
DATA_COLLECTOR_ADMIN
-
Fields inherited from interface org.ow2.clif.datacollector.api.DataCollectorWrite
DATA_COLLECTOR_WRITE
-
-
Constructor Summary
Constructors Constructor Description AbstractProbeDataCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ProbeEvent measure)new measure available => call super class' add() method and compute statisticslong[]getStat()Get statistics computed since previous call (or initialization for 1st call)voidinit(java.io.Serializable testId, java.lang.String probeId)new test initialization => call super class' init() method and resets all statistics, including the cumulative ones-
Methods inherited from class org.ow2.clif.datacollector.lib.AbstractDataCollector
add, add, add, bindFc, listFc, lookupFc, setFilter, terminate, unbindFc
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ow2.clif.datacollector.api.DataCollectorAdmin
getLabels
-
-
-
-
Method Detail
-
init
public void init(java.io.Serializable testId, java.lang.String probeId)new test initialization => call super class' init() method and resets all statistics, including the cumulative ones- Specified by:
initin interfaceDataCollectorWrite- Overrides:
initin classAbstractDataCollector- Parameters:
testId- test identifierprobeId- blade identifier
-
add
public void add(ProbeEvent measure)
new measure available => call super class' add() method and compute statistics- Specified by:
addin interfaceDataCollectorWrite- Overrides:
addin classAbstractDataCollector- Parameters:
measure- the new measure
-
getStat
public long[] getStat()
Get statistics computed since previous call (or initialization for 1st call)- Returns:
- the latest blade statistics in the form of an array of integer values.
- See Also:
DataCollectorAdmin.getLabels()
-
-