Class ApplicationPlacementAllocatorFactory
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.ApplicationPlacementAllocatorFactory
Factory class to build various application placement policies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
-