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

public class PlacementConstraintProcessor extends AbstractPlacementProcessor
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
    void
    init(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      init in interface org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor
      Overrides:
      init in class AbstractPlacementProcessor
    • 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:
      finishApplicationMaster in interface org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor
      Overrides:
      finishApplicationMaster in class AbstractPlacementProcessor