Class TaskManagerServicesConfiguration
java.lang.Object
org.apache.flink.runtime.taskexecutor.TaskManagerServicesConfiguration
Configuration for the task manager services such as the memory manager, the io manager and the
metric registry.
-
Method Summary
Modifier and TypeMethodDescriptionfromConfiguration(org.apache.flink.configuration.Configuration configuration, ResourceID resourceID, String externalAddress, boolean localCommunicationOnly, TaskExecutorResourceSpec taskExecutorResourceSpec, WorkingDirectory workingDirectory) Utility method to extract TaskManager config parameters from the configuration and to sanity check them.String[]org.apache.flink.util.FlinkUserCodeClassLoaders.ResolveOrderorg.apache.flink.configuration.Configurationorg.apache.flink.configuration.MemorySizeorg.apache.flink.configuration.MemorySizeintintintString[]
-
Method Details
-
getConfiguration
public org.apache.flink.configuration.Configuration getConfiguration() -
getResourceID
-
getTmpDirPaths
-
getNumberOfSlots
public int getNumberOfSlots() -
getPageSize
public int getPageSize() -
getTaskExecutorResourceSpec
-
getNetworkMemorySize
public org.apache.flink.configuration.MemorySize getNetworkMemorySize() -
getManagedMemorySize
public org.apache.flink.configuration.MemorySize getManagedMemorySize() -
getSystemResourceMetricsProbingInterval
-
getClassLoaderResolveOrder
public org.apache.flink.util.FlinkUserCodeClassLoaders.ResolveOrder getClassLoaderResolveOrder() -
getAlwaysParentFirstLoaderPatterns
-
getNumIoThreads
public int getNumIoThreads() -
getNodeId
-
fromConfiguration
public static TaskManagerServicesConfiguration fromConfiguration(org.apache.flink.configuration.Configuration configuration, ResourceID resourceID, String externalAddress, boolean localCommunicationOnly, TaskExecutorResourceSpec taskExecutorResourceSpec, WorkingDirectory workingDirectory) throws Exception Utility method to extract TaskManager config parameters from the configuration and to sanity check them.- Parameters:
configuration- The configuration.resourceID- resource ID of the task managerexternalAddress- identifying the IP address under which the TaskManager will be accessiblelocalCommunicationOnly- True if only local communication is possible. Use only in cases where only one task manager runs.taskExecutorResourceSpec- resource specification of the TaskManager to startworkingDirectory- working directory of the TaskManager- Returns:
- configuration of task manager services used to create them
- Throws:
Exception
-