Class TaskManagerServicesConfiguration
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.TaskManagerServicesConfiguration
-
public class TaskManagerServicesConfiguration extends Object
Configuration for the task manager services such as the memory manager, the io manager and the metric registry.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskManagerServicesConfiguration
fromConfiguration(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[]
getAlwaysParentFirstLoaderPatterns()
org.apache.flink.util.FlinkUserCodeClassLoaders.ResolveOrder
getClassLoaderResolveOrder()
org.apache.flink.configuration.Configuration
getConfiguration()
org.apache.flink.configuration.MemorySize
getManagedMemorySize()
org.apache.flink.configuration.MemorySize
getNetworkMemorySize()
String
getNodeId()
int
getNumberOfSlots()
int
getNumIoThreads()
int
getPageSize()
ResourceID
getResourceID()
Optional<Duration>
getSystemResourceMetricsProbingInterval()
TaskExecutorResourceSpec
getTaskExecutorResourceSpec()
String[]
getTmpDirPaths()
-
-
-
Method Detail
-
getConfiguration
public org.apache.flink.configuration.Configuration getConfiguration()
-
getResourceID
public ResourceID getResourceID()
-
getTmpDirPaths
public String[] getTmpDirPaths()
-
getNumberOfSlots
public int getNumberOfSlots()
-
getPageSize
public int getPageSize()
-
getTaskExecutorResourceSpec
public TaskExecutorResourceSpec getTaskExecutorResourceSpec()
-
getNetworkMemorySize
public org.apache.flink.configuration.MemorySize getNetworkMemorySize()
-
getManagedMemorySize
public org.apache.flink.configuration.MemorySize getManagedMemorySize()
-
getSystemResourceMetricsProbingInterval
public Optional<Duration> getSystemResourceMetricsProbingInterval()
-
getClassLoaderResolveOrder
public org.apache.flink.util.FlinkUserCodeClassLoaders.ResolveOrder getClassLoaderResolveOrder()
-
getAlwaysParentFirstLoaderPatterns
public String[] getAlwaysParentFirstLoaderPatterns()
-
getNumIoThreads
public int getNumIoThreads()
-
getNodeId
public String 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
-
-