Search in sources :

Example 1 with DirectStoreMultiAccumulator

use of org.spf4j.perf.impl.acc.DirectStoreMultiAccumulator in project spf4j by zolyfarkas.

the class RecorderFactory method createDirectRecorder.

public static MultiMeasurementRecorder createDirectRecorder(final Object measuredEntity, final String description, final String[] measurementNames, final String[] measurementUnits) {
    Aggregation[] aggs = new Aggregation[measurementNames.length];
    Arrays.fill(aggs, Aggregation.UNKNOWN);
    DirectStoreMultiAccumulator mr = new DirectStoreMultiAccumulator(new MeasurementsInfoImpl(measuredEntity, description, measurementNames, measurementUnits, aggs, MeasurementType.UNTYPED), MEASUREMENT_STORE);
    mr.registerJmx();
    return mr;
}
Also used : Aggregation(org.spf4j.tsdb2.avro.Aggregation) DirectStoreMultiAccumulator(org.spf4j.perf.impl.acc.DirectStoreMultiAccumulator)

Example 2 with DirectStoreMultiAccumulator

use of org.spf4j.perf.impl.acc.DirectStoreMultiAccumulator in project spf4j by zolyfarkas.

the class RecorderFactory method createDirectRecorder.

public static MultiMeasurementRecorder createDirectRecorder(final Object measuredEntity, final String description, final String[] measurementNames, final String[] measurementUnits, final MeasurementType type) {
    Aggregation[] aggs = new Aggregation[measurementNames.length];
    Arrays.fill(aggs, Aggregation.UNKNOWN);
    DirectStoreMultiAccumulator mr = new DirectStoreMultiAccumulator(new MeasurementsInfoImpl(measuredEntity, description, measurementNames, measurementUnits, aggs, type), MEASUREMENT_STORE);
    mr.registerJmx();
    return mr;
}
Also used : Aggregation(org.spf4j.tsdb2.avro.Aggregation) DirectStoreMultiAccumulator(org.spf4j.perf.impl.acc.DirectStoreMultiAccumulator)

Aggregations

DirectStoreMultiAccumulator (org.spf4j.perf.impl.acc.DirectStoreMultiAccumulator)2 Aggregation (org.spf4j.tsdb2.avro.Aggregation)2