Search in sources :

Example 1 with CapacityHandler

use of io.jenkins.plugins.orka.helpers.CapacityHandler in project macstadium-orka-plugin by jenkinsci.

the class OrkaCloud method readResolve.

protected Object readResolve() {
    this.templates.forEach(t -> t.setParent(this));
    this.mappings = this.mappings == null ? Collections.emptyList() : this.mappings;
    if (StringUtils.isEmpty(this.instanceCapSetting)) {
        this.instanceCap = Integer.MAX_VALUE;
    } else {
        this.instanceCap = Integer.parseInt(this.instanceCapSetting);
    }
    this.capacityHandler = new CapacityHandler(this.name, this.instanceCap);
    this.timeout = this.timeout > 0 ? this.timeout : defaultTimeout;
    return this;
}
Also used : CapacityHandler(io.jenkins.plugins.orka.helpers.CapacityHandler)

Aggregations

CapacityHandler (io.jenkins.plugins.orka.helpers.CapacityHandler)1