Class TaskExecutorFlinkMemoryUtils
- java.lang.Object
-
- org.apache.flink.runtime.util.config.memory.taskmanager.TaskExecutorFlinkMemoryUtils
-
- All Implemented Interfaces:
FlinkMemoryUtils<TaskExecutorFlinkMemory>
public class TaskExecutorFlinkMemoryUtils extends Object implements FlinkMemoryUtils<TaskExecutorFlinkMemory>
FlinkMemoryUtils
for Task Executor.The required fine-grained components are
TaskManagerOptions.TASK_HEAP_MEMORY
andTaskManagerOptions.MANAGED_MEMORY_SIZE
.
-
-
Constructor Summary
Constructors Constructor Description TaskExecutorFlinkMemoryUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskExecutorFlinkMemory
deriveFromRequiredFineGrainedOptions(Configuration config)
TaskExecutorFlinkMemory
deriveFromTotalFlinkMemory(Configuration config, MemorySize totalFlinkMemorySize)
static MemorySize
getFrameworkHeapMemorySize(Configuration config)
static MemorySize
getFrameworkOffHeapMemorySize(Configuration config)
-
-
-
Method Detail
-
deriveFromRequiredFineGrainedOptions
public TaskExecutorFlinkMemory deriveFromRequiredFineGrainedOptions(Configuration config)
- Specified by:
deriveFromRequiredFineGrainedOptions
in interfaceFlinkMemoryUtils<TaskExecutorFlinkMemory>
-
deriveFromTotalFlinkMemory
public TaskExecutorFlinkMemory deriveFromTotalFlinkMemory(Configuration config, MemorySize totalFlinkMemorySize)
- Specified by:
deriveFromTotalFlinkMemory
in interfaceFlinkMemoryUtils<TaskExecutorFlinkMemory>
-
getFrameworkHeapMemorySize
public static MemorySize getFrameworkHeapMemorySize(Configuration config)
-
getFrameworkOffHeapMemorySize
public static MemorySize getFrameworkOffHeapMemorySize(Configuration config)
-
-