dev.galasa.linux.internal.properties.SharedLinuxPriority Maven / Gradle / Ivy
The newest version!
/*
* Copyright contributors to the Galasa project
*
* SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.linux.internal.properties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import dev.galasa.framework.spi.cps.CpsProperties;
/**
* Shared Linux Provisioning priority
*
* How important this provisioner is against the other provisioners, the larger the number the more important.
*
*
* The property is:-
*
* linux.shared.priority=100
*
*
* default value is 1
*
*
*
*
*/
public class SharedLinuxPriority extends CpsProperties {
private final static Log logger = LogFactory.getLog(SharedLinuxPriority.class);
public static int get() {
try {
return Integer.parseInt(getStringWithDefault(LinuxPropertiesSingleton.cps(), "1", "shared", "priority"));
} catch (Exception e) {
logger.warn("Unable to obtain Shared Linux Priority", e);
return 1;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy