io.github.quickmsg.metric.InfluxDbMetricFactory Maven / Gradle / Ivy
package io.github.quickmsg.metric;
import io.github.quickmsg.common.config.BootstrapConfig;
import io.github.quickmsg.common.metric.MetricFactory;
import io.github.quickmsg.common.metric.MetricManager;
/**
* @author luxurong
*/
public class InfluxDbMetricFactory implements MetricFactory {
private MetricManager metricManager;
@Override
public MetricFactory initFactory(BootstrapConfig.MeterConfig config) {
this.metricManager = new InfluxDbMetricManager(config);
return this;
}
@Override
public MetricManager getMetricManager() {
return this.metricManager;
}
}