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

de.otto.edison.status.configuration.ClusterInfoProperties Maven / Gradle / Ivy

There is a newer version: 3.3.3
Show newest version
package de.otto.edison.status.configuration;

import de.otto.edison.annotations.Beta;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Properties used to configure the display of additional status information on /internal/status and /internal/info.
 */
@ConfigurationProperties(prefix = "edison.status.cluster")
@Beta
public class ClusterInfoProperties {

    /**
     * Enable/Disable the display of additional status information on /internal/status and /internal/info
     */
    private boolean enabled = false;

    /**
     * HTTP-Header used to identify the current color of the application cluster.
     */
    private String colorHeader = "X-Color";
    /**
     * Http-Header used to identify the current stage of the application cluster.
     */
    private String colorStateHeader = "X-Staging";

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getColorHeader() {
        return colorHeader;
    }

    public void setColorHeader(String colorHeader) {
        this.colorHeader = colorHeader;
    }

    public String getColorStateHeader() {
        return colorStateHeader;
    }

    public void setColorStateHeader(String colorStateHeader) {
        this.colorStateHeader = colorStateHeader;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy