public class SlotManagerUtils extends Object
SlotManager
implementations.Constructor and Description |
---|
SlotManagerUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
calculateDefaultNumSlots(ResourceProfile totalResourceProfile,
ResourceProfile defaultSlotResourceProfile) |
static ResourceProfile |
generateDefaultSlotResourceProfile(ResourceProfile resourceProfile,
int numSlotsPerWorker)
|
static ResourceProfile |
generateDefaultSlotResourceProfile(WorkerResourceSpec workerResourceSpec,
int numSlotsPerWorker)
|
static ResourceProfile |
generateTaskManagerTotalResourceProfile(WorkerResourceSpec workerResourceSpec) |
static ResourceProfile |
getEffectiveResourceProfile(ResourceProfile requirement,
ResourceProfile defaultResourceProfile) |
public static ResourceProfile generateDefaultSlotResourceProfile(WorkerResourceSpec workerResourceSpec, int numSlotsPerWorker)
public static ResourceProfile generateDefaultSlotResourceProfile(ResourceProfile resourceProfile, int numSlotsPerWorker)
public static int calculateDefaultNumSlots(ResourceProfile totalResourceProfile, ResourceProfile defaultSlotResourceProfile)
public static ResourceProfile getEffectiveResourceProfile(ResourceProfile requirement, ResourceProfile defaultResourceProfile)
public static ResourceProfile generateTaskManagerTotalResourceProfile(WorkerResourceSpec workerResourceSpec)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.