Class ResourceSizing
java.lang.Object
org.apache.hadoop.yarn.api.records.ResourceSizing
ResourceSizing contains information for the size of a
SchedulingRequest, such as the number of requested allocations and
the resources for each allocation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract intabstract ResourceinthashCode()static ResourceSizingnewInstance(int numAllocations, Resource resources) static ResourceSizingnewInstance(Resource resources) abstract voidsetNumAllocations(int numAllocations) abstract voidsetResources(Resource resources)
-
Constructor Details
-
ResourceSizing
public ResourceSizing()
-
-
Method Details
-
newInstance
-
newInstance
-
getNumAllocations
@Public @Unstable public abstract int getNumAllocations() -
setNumAllocations
@Public @Unstable public abstract void setNumAllocations(int numAllocations) -
getResources
-
setResources
-
hashCode
public int hashCode() -
equals
-