@InterfaceAudience.Private @InterfaceStability.Unstable public class ConfigurableResource extends Object
ConfigurableResource
object represents an entity that is used to
configure resources, such as maximum resources of a queue. It can be
percentage of cluster resources or an absolute value.Constructor and Description |
---|
ConfigurableResource(org.apache.hadoop.yarn.api.records.Resource resource) |
Modifier and Type | Method and Description |
---|---|
double[] |
getPercentages() |
org.apache.hadoop.yarn.api.records.Resource |
getResource()
Get the absolute resource.
|
org.apache.hadoop.yarn.api.records.Resource |
getResource(org.apache.hadoop.yarn.api.records.Resource clusterResource)
Get resource by multiplying the cluster resource and the percentage of
each resource respectively.
|
public ConfigurableResource(org.apache.hadoop.yarn.api.records.Resource resource)
public org.apache.hadoop.yarn.api.records.Resource getResource(org.apache.hadoop.yarn.api.records.Resource clusterResource)
percentages
or clusterResource
is null.clusterResource
- the cluster resourcepublic org.apache.hadoop.yarn.api.records.Resource getResource()
public double[] getPercentages()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.