All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.ippon.measures.Measure Maven / Gradle / Ivy

Go to download

A reporter for Apache Spark which announces measurements to a Spark Streaming application.

There is a newer version: 1.1
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy