Class SlotManagerUtils
- java.lang.Object
-
- org.apache.flink.runtime.resourcemanager.slotmanager.SlotManagerUtils
-
public class SlotManagerUtils extends Object
Utilities forSlotManager
implementations.
-
-
Constructor Summary
Constructors Constructor Description SlotManagerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
generateDefaultSlotResourceProfile
public static ResourceProfile generateDefaultSlotResourceProfile(WorkerResourceSpec workerResourceSpec, int numSlotsPerWorker)
-
generateDefaultSlotResourceProfile
public static ResourceProfile generateDefaultSlotResourceProfile(ResourceProfile resourceProfile, int numSlotsPerWorker)
-
calculateDefaultNumSlots
public static int calculateDefaultNumSlots(ResourceProfile totalResourceProfile, ResourceProfile defaultSlotResourceProfile)
-
getEffectiveResourceProfile
public static ResourceProfile getEffectiveResourceProfile(ResourceProfile requirement, ResourceProfile defaultResourceProfile)
-
generateTaskManagerTotalResourceProfile
public static ResourceProfile generateTaskManagerTotalResourceProfile(WorkerResourceSpec workerResourceSpec)
-
-