@InterfaceAudience.Private @InterfaceStability.Evolving public class ResourceWeights extends Object
Modifier and Type | Field and Description |
---|---|
static ResourceWeights |
NEUTRAL |
Constructor and Description |
---|
ResourceWeights() |
ResourceWeights(float weight) |
ResourceWeights(float memoryWeight,
float cpuWeight) |
Modifier and Type | Method and Description |
---|---|
float |
getWeight(ResourceType resourceType) |
void |
setWeight(float weight) |
void |
setWeight(ResourceType resourceType,
float weight) |
String |
toString() |
public static final ResourceWeights NEUTRAL
public ResourceWeights(float memoryWeight, float cpuWeight)
public ResourceWeights(float weight)
public ResourceWeights()
public void setWeight(float weight)
public void setWeight(ResourceType resourceType, float weight)
public float getWeight(ResourceType resourceType)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.