Search in sources :

Example 1 with AsmHistogramSnapshot

use of com.alibaba.jstorm.common.metric.snapshot.AsmHistogramSnapshot in project jstorm by alibaba.

the class AsmHistogram method updateSnapshot.

@Override
protected void updateSnapshot(int window) {
    JHistogram histogram = histogramMap.get(window);
    if (histogram != null) {
        AsmSnapshot snapshot = new AsmHistogramSnapshot().setSnapshot(histogram.getSnapshot()).setTs(System.currentTimeMillis()).setMetricId(metricId);
        snapshots.put(window, snapshot);
    }
}
Also used : AsmSnapshot(com.alibaba.jstorm.common.metric.snapshot.AsmSnapshot) JHistogram(com.alibaba.jstorm.common.metric.codahale.JHistogram) AsmHistogramSnapshot(com.alibaba.jstorm.common.metric.snapshot.AsmHistogramSnapshot)

Aggregations

JHistogram (com.alibaba.jstorm.common.metric.codahale.JHistogram)1 AsmHistogramSnapshot (com.alibaba.jstorm.common.metric.snapshot.AsmHistogramSnapshot)1 AsmSnapshot (com.alibaba.jstorm.common.metric.snapshot.AsmSnapshot)1