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

com.xqbase.metric.common.MetricEntry Maven / Gradle / Ivy

Go to download

a lightweight metric framework for aggregating, collecting and showing metric data - common part

There is a newer version: 0.2.13
Show newest version
package com.xqbase.metric.common;

import java.util.HashMap;

public class MetricEntry {
	private MetricKey key;
	private MetricValue value;

	public MetricEntry(MetricKey key, MetricValue value) {
		this.key = key;
		this.value = value;
	}

	public String getName() {
		return key.getName();
	}

	public HashMap getTagMap() {
		return key.getTagMap();
	}

	public long getCount() {
		return value.getCount();
	}

	public double getSum() {
		return value.getSum();
	}

	public double getMax() {
		return value.getMax();
	}

	public double getMin() {
		return value.getMin();
	}

	public double getSqr() {
		return value.getSqr();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy