cz.xtf.core.config.WaitingConfig Maven / Gradle / Ivy
package cz.xtf.core.config;
import org.slf4j.event.Level;
public class WaitingConfig {
public static final String WAITING_TIMEOUT = "xtf.waiting.timeout";
public static final String WAITING_LOG_LEVEL = "xtf.waiting.log.level";
public static final String WAITING_TIMEOUT_CLEANUP = "xtf.waiting.timeout.cleanup";
public static final String WAITING_BUILD_TIMEOUT = "xtf.waiting.build.timeout";
private static final String WAITING_TIMEOUT_DEFAULT = "180000";
private static final String WAITING_LOG_LEVEL_DEFAULT = "INFO";
private static final String WAITING_TIMEOUT_CLEANUP_DEFAULT = "20000";
private static final String WAITING_BUILD_TIMEOUT_DEFAULT = "600000";
public static long timeout() {
return Long.parseLong(XTFConfig.get(WAITING_TIMEOUT, WAITING_TIMEOUT_DEFAULT));
}
public static Level level() {
return Level.valueOf(XTFConfig.get(WAITING_LOG_LEVEL, WAITING_LOG_LEVEL_DEFAULT).toUpperCase());
}
public static long timeoutCleanup() {
return Long.parseLong(XTFConfig.get(WAITING_TIMEOUT_CLEANUP, WAITING_TIMEOUT_CLEANUP_DEFAULT));
}
public static long buildTimeout() {
return Long.parseLong(XTFConfig.get(WAITING_BUILD_TIMEOUT, WAITING_BUILD_TIMEOUT_DEFAULT));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy