net.nemerosa.ontrack.model.support.OntrackConfigProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.support;
import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/**
* Configuration properties for Ontrack.
*/
@Data
@Component
@ConfigurationProperties(prefix = "ontrack.config")
public class OntrackConfigProperties {
private final Logger logger = LoggerFactory.getLogger(OntrackConfigProperties.class);
/**
* Maximum number of application messages to retain
*/
private int applicationLogMaxEntries = 1000;
/**
* Home directory
*/
private String applicationWorkingDir = "work/files";
/**
* Metrics refresh period (in seconds)
*/
private int metricsPeriod = 60;
/**
* Testing the configurations of external configurations
*/
private boolean configurationTest = true;
/**
* Job configuration
*/
private JobConfigProperties jobs = new JobConfigProperties();
@PostConstruct
public void log() {
if (!configurationTest) {
logger.warn("[config] Tests of external configurations are disabled");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy