com.jeantessier.metrics
Class AccumulatorMeasurement
java.lang.Object
|
+--com.jeantessier.metrics.MeasurementBase
|
+--com.jeantessier.metrics.AccumulatorMeasurement
- All Implemented Interfaces:
- CollectionMeasurement, Measurement
- public class AccumulatorMeasurement
- extends MeasurementBase
- implements CollectionMeasurement
Accumulates entries in submetrics, filtering with regular
expressions. If no regular expressions are given, matches
everything for the given measurement, which must implement
the CollectionMeasurement
interface. Regular
expressions matching using Perl5Util
from
Jakarta-ORO. This measurement will use
Perl5Util.group(1)
if not null, or else the
full string.
This is the syntax for initializing this type of
measurement:
<init>
measurement name [perl regular expression]
...
</init>
Methods inherited from class com.jeantessier.metrics.MeasurementBase |
Add, Add, Add, Add, Add, Cached, Cached, Context, Descriptor, doubleValue, floatValue, InRange, intValue, LongName, longValue, Perl, ShortName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jeantessier.metrics.Measurement |
Add, Add, Add, Add, Add, Context, Descriptor, doubleValue, floatValue, InRange, intValue, LongName, longValue, ShortName |
AccumulatorMeasurement
public AccumulatorMeasurement(MeasurementDescriptor descriptor,
Metrics context,
java.lang.String init_text)
Accept
public void Accept(MeasurementVisitor visitor)
- Specified by:
Accept
in interface Measurement
Value
public java.lang.Number Value()
- Specified by:
Value
in interface Measurement
- Overrides:
Value
in class MeasurementBase
Compute
protected double Compute()
- Overrides:
Compute
in class MeasurementBase
Values
public java.util.Collection Values()
- Specified by:
Values
in interface CollectionMeasurement