Class TaskExecutorMemoryConfiguration

  • All Implemented Interfaces:
    Serializable

    public class TaskExecutorMemoryConfiguration
    extends Object
    implements Serializable
    TaskExecutorConfiguration collects the configuration of a TaskExecutor instance.
    See Also:
    Serialized Form
    • Constructor Detail

      • TaskExecutorMemoryConfiguration

        public TaskExecutorMemoryConfiguration​(Long frameworkHeap,
                                               Long taskHeap,
                                               Long frameworkOffHeap,
                                               Long taskOffHeap,
                                               Long networkMemory,
                                               Long managedMemoryTotal,
                                               Long jvmMetaspace,
                                               Long jvmOverhead,
                                               Long totalFlinkMemory,
                                               Long totalProcessMemory)
    • Method Detail

      • create

        public static TaskExecutorMemoryConfiguration create​(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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object