Class TaskExecutorMemoryConfiguration
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.TaskExecutorMemoryConfiguration
-
- All Implemented Interfaces:
Serializable
public class TaskExecutorMemoryConfiguration extends Object implements Serializable
TaskExecutorConfiguration collects the configuration of a TaskExecutor instance.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_NAME_FRAMEWORK_HEAPstatic StringFIELD_NAME_FRAMEWORK_OFFHEAPstatic StringFIELD_NAME_JVM_METASPACEstatic StringFIELD_NAME_JVM_OVERHEADstatic StringFIELD_NAME_MANAGED_MEMORYstatic StringFIELD_NAME_NETWORK_MEMORYstatic StringFIELD_NAME_TASK_HEAPstatic StringFIELD_NAME_TASK_OFFHEAPstatic StringFIELD_NAME_TOTAL_FLINK_MEMORYstatic StringFIELD_NAME_TOTAL_PROCESS_MEMORY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskExecutorMemoryConfigurationcreate(org.apache.flink.configuration.Configuration config)Factory method for initializing a TaskExecutorMemoryConfiguration based on the passed Configuration.booleanequals(Object o)LonggetFrameworkHeap()Returns the configured heap size used by the framework.LonggetFrameworkOffHeap()Returns the configured off-heap size used by the framework.LonggetJvmMetaspace()Returns the maximum Metaspace size allowed for the task manager.LonggetJvmOverhead()Returns the threshold for defining the maximum amount of memory used for the JVM overhead.LonggetManagedMemoryTotal()Returns the total amount of memory reserved for by the MemoryManager.LonggetNetworkMemory()Returns the configured maximum network memory.LonggetTaskHeap()Returns the configured heap size used by the tasks.LonggetTaskOffHeap()Returns the configured off-heap size used by the tasks.LonggetTotalFlinkMemory()Returns the amount of memory configured to be used by Flink excluding things like JVM Metaspace and other JVM overhead.LonggetTotalProcessMemory()Returns the total amount of memory configured to be used by the JVM including all the different memory pools.inthashCode()StringtoString()
-
-
-
Field Detail
-
FIELD_NAME_FRAMEWORK_HEAP
public static final String FIELD_NAME_FRAMEWORK_HEAP
- See Also:
- Constant Field Values
-
FIELD_NAME_TASK_HEAP
public static final String FIELD_NAME_TASK_HEAP
- See Also:
- Constant Field Values
-
FIELD_NAME_FRAMEWORK_OFFHEAP
public static final String FIELD_NAME_FRAMEWORK_OFFHEAP
- See Also:
- Constant Field Values
-
FIELD_NAME_TASK_OFFHEAP
public static final String FIELD_NAME_TASK_OFFHEAP
- See Also:
- Constant Field Values
-
FIELD_NAME_NETWORK_MEMORY
public static final String FIELD_NAME_NETWORK_MEMORY
- See Also:
- Constant Field Values
-
FIELD_NAME_MANAGED_MEMORY
public static final String FIELD_NAME_MANAGED_MEMORY
- See Also:
- Constant Field Values
-
FIELD_NAME_JVM_METASPACE
public static final String FIELD_NAME_JVM_METASPACE
- See Also:
- Constant Field Values
-
FIELD_NAME_JVM_OVERHEAD
public static final String FIELD_NAME_JVM_OVERHEAD
- See Also:
- Constant Field Values
-
FIELD_NAME_TOTAL_FLINK_MEMORY
public static final String FIELD_NAME_TOTAL_FLINK_MEMORY
- See Also:
- Constant Field Values
-
FIELD_NAME_TOTAL_PROCESS_MEMORY
public static final String FIELD_NAME_TOTAL_PROCESS_MEMORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static TaskExecutorMemoryConfiguration create(org.apache.flink.configuration.Configuration config)
Factory method for initializing a TaskExecutorMemoryConfiguration based on the passed Configuration.- Parameters:
config- The Configuration used for initializing the TaskExecutorMemoryConfiguration.- Returns:
- The newly instantiated TaskExecutorMemoryConfiguration.
-
getFrameworkHeap
public Long getFrameworkHeap()
Returns the configured heap size used by the framework.
-
getTaskHeap
public Long getTaskHeap()
Returns the configured heap size used by the tasks.
-
getFrameworkOffHeap
public Long getFrameworkOffHeap()
Returns the configured off-heap size used by the framework.
-
getTaskOffHeap
public Long getTaskOffHeap()
Returns the configured off-heap size used by the tasks.
-
getNetworkMemory
public Long getNetworkMemory()
Returns the configured maximum network memory.
-
getManagedMemoryTotal
public Long getManagedMemoryTotal()
Returns the total amount of memory reserved for by the MemoryManager.
-
getJvmMetaspace
public Long getJvmMetaspace()
Returns the maximum Metaspace size allowed for the task manager.
-
getJvmOverhead
public Long getJvmOverhead()
Returns the threshold for defining the maximum amount of memory used for the JVM overhead.
-
getTotalFlinkMemory
public Long getTotalFlinkMemory()
Returns the amount of memory configured to be used by Flink excluding things like JVM Metaspace and other JVM overhead.
-
getTotalProcessMemory
public Long getTotalProcessMemory()
Returns the total amount of memory configured to be used by the JVM including all the different memory pools.
-
-