Class TaskExecutorResourceUtils
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils
-
public class TaskExecutorResourceUtils extends Object
Utility class forTaskExecutorResourceSpec
of runningTaskExecutor
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Configuration
adjustForLocalExecution(Configuration config)
static long
calculateTotalFlinkMemoryFromComponents(Configuration config)
static long
calculateTotalProcessMemoryFromComponents(Configuration config)
static ResourceProfile
generateDefaultSlotResourceProfile(TaskExecutorResourceSpec taskExecutorResourceSpec, int numberOfSlots)
static ResourceProfile
generateTotalAvailableResourceProfile(TaskExecutorResourceSpec taskExecutorResourceSpec)
static TaskExecutorResourceSpec
resourceSpecFromConfigForLocalExecution(Configuration config)
-
-
-
Method Detail
-
generateDefaultSlotResourceProfile
@VisibleForTesting public static ResourceProfile generateDefaultSlotResourceProfile(TaskExecutorResourceSpec taskExecutorResourceSpec, int numberOfSlots)
-
generateTotalAvailableResourceProfile
@VisibleForTesting public static ResourceProfile generateTotalAvailableResourceProfile(TaskExecutorResourceSpec taskExecutorResourceSpec)
-
resourceSpecFromConfigForLocalExecution
@VisibleForTesting public static TaskExecutorResourceSpec resourceSpecFromConfigForLocalExecution(Configuration config)
-
calculateTotalFlinkMemoryFromComponents
public static long calculateTotalFlinkMemoryFromComponents(Configuration config)
-
calculateTotalProcessMemoryFromComponents
public static long calculateTotalProcessMemoryFromComponents(Configuration config)
-
adjustForLocalExecution
public static Configuration adjustForLocalExecution(Configuration config)
-
-