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

io.github.quickmsg.metric.InfluxDbMetricFactory Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy