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

com.capitalone.dashboard.collector.SonarSettings Maven / Gradle / Ivy

The newest version!
package com.capitalone.dashboard.collector;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Bean to hold settings specific to the Sonar collector.
 */
@Component
@ConfigurationProperties(prefix = "sonar")
public class SonarSettings {
    private String cron;
    private List usernames = new ArrayList<>();
    private List passwords = new ArrayList<>();
    private List servers = new ArrayList<>();
    private List niceNames = new ArrayList<>();
    private List tokens = new ArrayList<>();
    private String metrics63andAbove; // 6.3 is the sonar version
    private String metricsBefore63;

    @Value("${sonar.requestReadTimeout:20000}")
    private int requestReadTimeout;

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public List getUsernames() {
        return usernames;
    }

    public void setUsernames(List usernames) {
        this.usernames = usernames;
    }

    public List getPasswords() {
        return passwords;
    }

    public void setPasswords(List passwords) {
        this.passwords = passwords;
    }

    public List getServers() {
        return servers;
    }

    public void setServers(List servers) {
        this.servers = servers;
    }

    public List getNiceNames() {
        return niceNames;
    }

    public void setNiceNames(List niceNames) {
        this.niceNames = niceNames;
    }

    public List getTokens() {
        return tokens;
    }

    public void setTokens(List tokens) {
        this.tokens = tokens;
    }

    public String getMetrics63andAbove() {
        return metrics63andAbove;
    }

    public void setMetrics63andAbove(String metrics63andAbove) {
        this.metrics63andAbove = metrics63andAbove;
    }

    public String getMetricsBefore63() {
        return metricsBefore63;
    }

    public void setMetricsBefore63(String metricsBefore63) {
        this.metricsBefore63 = metricsBefore63;
    }

    public int getRequestReadTimeout() {
        return requestReadTimeout;
    }

    public void setRequestReadTimeout( int requestReadTimeout ) {
        this.requestReadTimeout = requestReadTimeout;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy