fr.ippon.measures.Measure 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.
package fr.ippon.measures;
import org.joda.time.DateTime;
import java.io.Serializable;
public abstract class Measure implements Serializable {
private String name;
private String metric;
private String timestamp;
public Measure(String name, String metric) {
this.name = name;
this.metric = metric;
this.timestamp = DateTime.now().toString();
}
public String getName() {
return name;
}
public String getMetric() {
return metric;
}
public String getTimestamp() {
return timestamp;
}
}