Class PlacedSchedulingRequest
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.api.PlacedSchedulingRequest
Class to encapsulate a Placed scheduling Request.
It has the original Scheduling Request and a list of SchedulerNodes (one
for each 'numAllocation' field in the corresponding ResourceSizing object.
NOTE: Clients of this class SHOULD NOT rely on the value of
resourceSizing.numAllocations and instead should use the
size of collection returned by getNodes() instead.
-
Constructor Summary
ConstructorsConstructorDescriptionPlacedSchedulingRequest(org.apache.hadoop.yarn.api.records.SchedulingRequest request) -
Method Summary
Modifier and TypeMethodDescriptiongetNodes()List of Node locations on which this Scheduling Request can be placed.intorg.apache.hadoop.yarn.api.records.SchedulingRequestvoidsetPlacementAttempt(int attempt) toString()
-
Constructor Details
-
PlacedSchedulingRequest
public PlacedSchedulingRequest(org.apache.hadoop.yarn.api.records.SchedulingRequest request)
-
-
Method Details
-
getSchedulingRequest
public org.apache.hadoop.yarn.api.records.SchedulingRequest getSchedulingRequest() -
getNodes
List of Node locations on which this Scheduling Request can be placed. The size of this list = schedulingRequest.resourceSizing.numAllocations.- Returns:
- List of Scheduler nodes.
-
getPlacementAttempt
public int getPlacementAttempt() -
setPlacementAttempt
public void setPlacementAttempt(int attempt) -
toString
-