org.apache.hadoop.yarn.server.resourcemanager.resource
Class ResourceWeights

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.resource.ResourceWeights

@InterfaceAudience.Private
@InterfaceStability.Evolving
public class ResourceWeights
extends Object


Field Summary
static ResourceWeights NEUTRAL
           
 
Constructor Summary
ResourceWeights()
           
ResourceWeights(float weight)
           
ResourceWeights(float memoryWeight, float cpuWeight)
           
 
Method Summary
 float getWeight(ResourceType resourceType)
           
 void setWeight(ResourceType resourceType, float weight)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEUTRAL

public static final ResourceWeights NEUTRAL
Constructor Detail

ResourceWeights

public ResourceWeights(float memoryWeight,
                       float cpuWeight)

ResourceWeights

public ResourceWeights(float weight)

ResourceWeights

public ResourceWeights()
Method Detail

setWeight

public void setWeight(ResourceType resourceType,
                      float weight)

getWeight

public float getWeight(ResourceType resourceType)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Apache Software Foundation. All Rights Reserved.