public abstract class ResourcesConfig extends Object implements ConfigView<BuckConfig>
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCES_PER_RULE_SECTION_HEADER |
static String |
RESOURCES_SECTION_HEADER |
Constructor and Description |
---|
ResourcesConfig() |
Modifier and Type | Method and Description |
---|---|
ConcurrencyLimit |
getConcurrencyLimit()
Construct a default ConcurrencyLimit instance from this config.
|
ResourceAmounts |
getDefaultResourceAmounts() |
abstract BuckConfig |
getDelegate() |
int |
getManagedThreadCount() |
ResourceAmounts |
getMaximumResourceAmounts() |
ResourceAllocationFairness |
getResourceAllocationFairness() |
com.google.common.collect.ImmutableMap<String,ResourceAmounts> |
getResourceAmountsPerRuleType() |
boolean |
isResourceAwareSchedulingEnabled() |
static ResourcesConfig |
of(BuckConfig delegate) |
public static final String RESOURCES_SECTION_HEADER
public static final String RESOURCES_PER_RULE_SECTION_HEADER
public abstract BuckConfig getDelegate()
getDelegate
in interface ConfigView<BuckConfig>
public static ResourcesConfig of(BuckConfig delegate)
@Value.Lazy public ResourceAllocationFairness getResourceAllocationFairness()
@Value.Lazy public boolean isResourceAwareSchedulingEnabled()
@Value.Lazy public com.google.common.collect.ImmutableMap<String,ResourceAmounts> getResourceAmountsPerRuleType()
@Value.Lazy public int getManagedThreadCount()
@Value.Lazy public ResourceAmounts getDefaultResourceAmounts()
@Value.Lazy public ResourceAmounts getMaximumResourceAmounts()
@Value.Lazy public ConcurrencyLimit getConcurrencyLimit()