public BasicSensor()

in src/main/java/com/microsoft/dhalion/sensors/BasicSensor.java [59:76]


  public BasicSensor(Config policyConf,
      Collection<String> metricNames,
      MetricsProvider metricsProvider,
      Collection<String> components) {
    this.metricNames = metricNames;
    this.metricsProvider = metricsProvider;

    if (components != null) {
      this.components = components;
    } else {
      Object result = policyConf.get(Key.CONF_COMPONENT_NAMES.value());
      if (result != null) {
        this.components = Arrays.asList(result.toString().split(","));
      } else {
        this.components = Collections.emptyList();
      }
    }
  }