Class PlacementConstraintProcessor
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.processor.AbstractPlacementProcessor
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.processor.PlacementConstraintProcessor
- All Implemented Interfaces:
org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor
An ApplicationMasterServiceProcessor that performs Constrained placement of
Scheduling Requests. It does the following:
1. All initialization.
2. Intercepts placement constraints from the register call and adds it to
the placement constraint manager.
3. Dispatches Scheduling Requests to the Planner.
-
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.processor.AbstractPlacementProcessor
nextAMSProcessor, scheduler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocate(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request, org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse response) voidfinishApplicationMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request, org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse response) voidinit(org.apache.hadoop.yarn.ams.ApplicationMasterServiceContext amsContext, org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor nextProcessor) Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.processor.AbstractPlacementProcessor
registerApplicationMaster
-
Constructor Details
-
PlacementConstraintProcessor
public PlacementConstraintProcessor()
-
-
Method Details
-
init
public void init(org.apache.hadoop.yarn.ams.ApplicationMasterServiceContext amsContext, org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor nextProcessor) - Specified by:
initin interfaceorg.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor- Overrides:
initin classAbstractPlacementProcessor
-
allocate
public void allocate(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request, org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse response) throws org.apache.hadoop.yarn.exceptions.YarnException - Throws:
org.apache.hadoop.yarn.exceptions.YarnException
-
finishApplicationMaster
public void finishApplicationMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request, org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse response) - Specified by:
finishApplicationMasterin interfaceorg.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor- Overrides:
finishApplicationMasterin classAbstractPlacementProcessor
-