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:
  • Field Details

  • Constructor Details

    • TaskExecutorMemoryConfiguration

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

    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object