net.nemerosa.ontrack.model.support.JobConfigProperties 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.apache.commons.lang3.Validate;
@Data
public class JobConfigProperties {
/**
* Core pool size for the threads used to run the jobs.
*/
private int poolSize = 10;
/**
* Orchestration interval
*/
private int orchestration = 2;
/**
* Pausing the jobs at startup?
*/
private boolean pausedAtStartup = false;
/**
* Using scattering of jobs
*/
private boolean scattering = true;
/**
* Scattering ratio (must be between 0.0 and 1.0 inclusive).
*/
private double scatteringRatio = 1.0;
/**
* Sets the scattering ratio (must be between 0.0 and 1.0 inclusive).
*/
@SuppressWarnings("unused")
public void setScatteringRatio(double value) {
Validate.inclusiveBetween(0.0, 1.0, value);
this.scatteringRatio = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy