com.hubspot.singularity.config.IndexViewConfiguration Maven / Gradle / Ivy
package com.hubspot.singularity.config;
import com.google.common.base.Optional;
public class IndexViewConfiguration {
private final UIConfiguration uiConfiguration;
private final Integer defaultMemory;
private final Integer defaultCpus;
private final Integer defaultDisk;
private final Integer slaveHttpPort;
private final Optional slaveHttpsPort;
private final int bounceExpirationMinutes;
private final long healthcheckIntervalSeconds;
private final long healthcheckTimeoutSeconds;
private final Optional healthcheckMaxRetries;
private final int startupTimeoutSeconds;
private final boolean loadBalancingEnabled;
private final Optional commonHostnameSuffixToOmit;
private final Integer warnIfScheduledJobIsRunningPastNextRunPct;
private final boolean generateAuthHeader;
public IndexViewConfiguration(UIConfiguration uiConfiguration,
Integer defaultMemory,
Integer defaultCpus,
Integer defaultDisk,
Integer slaveHttpPort,
Optional slaveHttpsPort,
int bounceExpirationMinutes,
long healthcheckIntervalSeconds,
long healthcheckTimeoutSeconds,
Optional healthcheckMaxRetries,
int startupTimeoutSeconds,
boolean loadBalancingEnabled,
Optional commonHostnameSuffixToOmit, Integer warnIfScheduledJobIsRunningPastNextRunPct,
boolean generateAuthHeader) {
this.uiConfiguration = uiConfiguration;
this.defaultMemory = defaultMemory;
this.defaultCpus = defaultCpus;
this.defaultDisk = defaultDisk;
this.slaveHttpPort = slaveHttpPort;
this.slaveHttpsPort = slaveHttpsPort;
this.bounceExpirationMinutes = bounceExpirationMinutes;
this.healthcheckIntervalSeconds = healthcheckIntervalSeconds;
this.healthcheckTimeoutSeconds = healthcheckTimeoutSeconds;
this.healthcheckMaxRetries = healthcheckMaxRetries;
this.startupTimeoutSeconds = startupTimeoutSeconds;
this.loadBalancingEnabled = loadBalancingEnabled;
this.commonHostnameSuffixToOmit = commonHostnameSuffixToOmit;
this.warnIfScheduledJobIsRunningPastNextRunPct = warnIfScheduledJobIsRunningPastNextRunPct;
this.generateAuthHeader = generateAuthHeader;
}
public UIConfiguration getUiConfiguration() {
return uiConfiguration;
}
public Integer getDefaultMemory() {
return defaultMemory;
}
public Integer getDefaultDisk() {
return defaultDisk;
}
public Integer getDefaultCpus() {
return defaultCpus;
}
public Integer getSlaveHttpPort() {
return slaveHttpPort;
}
public Optional getSlaveHttpsPort() {
return slaveHttpsPort;
}
public int getBounceExpirationMinutes() {
return bounceExpirationMinutes;
}
public long getHealthcheckIntervalSeconds() {
return healthcheckIntervalSeconds;
}
public long getHealthcheckTimeoutSeconds() {
return healthcheckTimeoutSeconds;
}
public Optional getHealthcheckMaxRetries() {
return healthcheckMaxRetries;
}
public int getStartupTimeoutSeconds() {
return startupTimeoutSeconds;
}
public boolean isLoadBalancingEnabled() {
return loadBalancingEnabled;
}
public Optional getCommonHostnameSuffixToOmit() {
return commonHostnameSuffixToOmit;
}
public Integer getWarnIfScheduledJobIsRunningPastNextRunPct() {
return warnIfScheduledJobIsRunningPastNextRunPct;
}
public boolean isGenerateAuthHeader() {
return generateAuthHeader;
}
}