java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.processor.AbstractPlacementProcessor
All Implemented Interfaces:
org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor
Direct Known Subclasses:
DisabledPlacementProcessor, PlacementConstraintProcessor, SchedulerPlacementProcessor

public abstract class AbstractPlacementProcessor extends Object implements org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor
Base class for all PlacementProcessors.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    finishApplicationMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId, 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)
     
    void
    registerApplicationMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId, org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request, org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse response)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor

    allocate
  • Field Details

    • nextAMSProcessor

      protected org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor nextAMSProcessor
    • scheduler

      protected AbstractYarnScheduler scheduler
  • Constructor Details

    • AbstractPlacementProcessor

      public AbstractPlacementProcessor()
  • 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
    • registerApplicationMaster

      public void registerApplicationMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId, org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request, org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse response) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
      Specified by:
      registerApplicationMaster in interface org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor
      Throws:
      IOException
      org.apache.hadoop.yarn.exceptions.YarnException
    • finishApplicationMaster

      public void finishApplicationMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId, 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