Class ApplicationPlacementAllocatorFactory

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.ApplicationPlacementAllocatorFactory

@Public @Unstable public class ApplicationPlacementAllocatorFactory extends Object
Factory class to build various application placement policies.
  • Constructor Details

    • ApplicationPlacementAllocatorFactory

      public ApplicationPlacementAllocatorFactory()
  • Method Details

    • getAppPlacementAllocator

      public static AppPlacementAllocator<SchedulerNode> getAppPlacementAllocator(String appPlacementAllocatorName, AppSchedulingInfo appSchedulingInfo, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerRequestKey, RMContext rmContext)
      Get AppPlacementAllocator related to the placement type requested.
      Parameters:
      appPlacementAllocatorName - allocator class name.
      appSchedulingInfo - app SchedulingInfo.
      schedulerRequestKey - scheduler RequestKey.
      rmContext - RMContext.
      Returns:
      Specific AppPlacementAllocator instance based on type