// Path: hangout-core/src/main/java/com/ctrip/ops/sysdev/exception/YamlConfigException.java
// @SuppressWarnings("ALL")
// public class YamlConfigException extends Exception {
//     public YamlConfigException(String msg) {
//         super("Invalid Config Exception! " + msg);
//     }
// }
// 
// Path: hangout-core/src/main/java/com/ctrip/ops/sysdev/metric/Metric.java
// public  class Metric {
// 
//     private static MetricRegistry metricRegistry = new MetricRegistry();
// 
//     public static Meter setMetric(String metricName) {
//         return metricRegistry.meter(metricName);
//     }
// 
//     public static MetricRegistry getMetricRegistry()
//     {
//         return metricRegistry;
//     }
// }


import com.codahale.metrics.Meter;
import com.ctrip.ops.sysdev.exception.YamlConfigException;
import com.ctrip.ops.sysdev.metric.Metric;
import lombok.NonNull;
import java.util.Map;
package com.ctrip.ops.sysdev.baseplugin;



/**
 * Created by gnuhpc on 2017/2/14.
 */
public class Base {

    protected boolean enableMeter = false;
    protected Meter meter;
    
    public Base(@NonNull Map config) {
        if (config.containsKey("meter_name")) {
            this.enableMeter = true;
// Path: hangout-core/src/main/java/com/ctrip/ops/sysdev/exception/YamlConfigException.java
// @SuppressWarnings("ALL")
// public class YamlConfigException extends Exception {
//     public YamlConfigException(String msg) {
//         super("Invalid Config Exception! " + msg);
//     }
// }
// 
// Path: hangout-core/src/main/java/com/ctrip/ops/sysdev/metric/Metric.java
// public  class Metric {
// 
//     private static MetricRegistry metricRegistry = new MetricRegistry();
// 
//     public static Meter setMetric(String metricName) {
//         return metricRegistry.meter(metricName);
//     }
// 
//     public static MetricRegistry getMetricRegistry()
//     {
//         return metricRegistry;
//     }
// }


// Path: hangout-core/src/main/java/com/ctrip/ops/sysdev/baseplugin/Base.java
import com.codahale.metrics.Meter;
import com.ctrip.ops.sysdev.exception.YamlConfigException;
import com.ctrip.ops.sysdev.metric.Metric;
import lombok.NonNull;
import java.util.Map;

package com.ctrip.ops.sysdev.baseplugin;



/**
 * Created by gnuhpc on 2017/2/14.
 */
public class Base {

    protected boolean enableMeter = false;
    protected Meter meter;
    
    public Base(@NonNull Map config) {
        if (config.containsKey("meter_name")) {
            this.enableMeter = true;
            meter = Metric.setMetric((String) config.get("meter_name"));