fr.ippon.measures.CounterMeasure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metrics-spark-reporter Show documentation
Show all versions of metrics-spark-reporter Show documentation
A reporter for Apache Spark which announces measurements
to a Spark Streaming application.
The newest version!
package fr.ippon.measures;
import com.codahale.metrics.Counter;
public class CounterMeasure extends Measure {
private Long count;
public CounterMeasure(String name, Counter counter) {
super(name, "counter");
this.count = counter.getCount();
}
public Long getCount() {
return count;
}
}