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

net.savantly.graphite.impl.DefaultGraphiteClient Maven / Gradle / Ivy

The newest version!
package net.savantly.graphite.impl;

import java.util.Collection;

import net.savantly.graphite.CarbonMetric;
import net.savantly.graphite.CarbonSender;
import net.savantly.graphite.GraphiteClient;

public class DefaultGraphiteClient implements GraphiteClient {
	private CarbonSender carbonSender;

	/**
	 * @param carbonSender
	 */
	public DefaultGraphiteClient(CarbonSender carbonSender) {
		this.carbonSender = carbonSender;
	}

	public void saveCarbonMetrics(CarbonMetric carbonMetric) {
		carbonSender.sendToCarbon(carbonMetric);
	}

	public void saveCarbonMetrics(Collection carbonMetrics) {
		carbonSender.sendToCarbon(carbonMetrics);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy