public class TaskManagerServicesConfiguration extends Object
Modifier and Type | Method and Description |
---|---|
static TaskManagerServicesConfiguration |
fromConfiguration(Configuration configuration,
ResourceID resourceID,
String externalAddress,
boolean localCommunicationOnly,
TaskExecutorResourceSpec taskExecutorResourceSpec)
Utility method to extract TaskManager config parameters from the configuration and to sanity
check them.
|
String[] |
getAlwaysParentFirstLoaderPatterns() |
FlinkUserCodeClassLoaders.ResolveOrder |
getClassLoaderResolveOrder() |
Configuration |
getConfiguration() |
MemorySize |
getManagedMemorySize() |
MemorySize |
getNetworkMemorySize() |
int |
getNumberOfSlots() |
int |
getNumIoThreads() |
int |
getPageSize() |
ResourceID |
getResourceID() |
Optional<Time> |
getSystemResourceMetricsProbingInterval() |
TaskExecutorResourceSpec |
getTaskExecutorResourceSpec() |
String[] |
getTmpDirPaths() |
public Configuration getConfiguration()
public ResourceID getResourceID()
public String[] getTmpDirPaths()
public int getNumberOfSlots()
public int getPageSize()
public TaskExecutorResourceSpec getTaskExecutorResourceSpec()
public MemorySize getNetworkMemorySize()
public MemorySize getManagedMemorySize()
public Optional<Time> getSystemResourceMetricsProbingInterval()
public FlinkUserCodeClassLoaders.ResolveOrder getClassLoaderResolveOrder()
public String[] getAlwaysParentFirstLoaderPatterns()
public int getNumIoThreads()
public static TaskManagerServicesConfiguration fromConfiguration(Configuration configuration, ResourceID resourceID, String externalAddress, boolean localCommunicationOnly, TaskExecutorResourceSpec taskExecutorResourceSpec) throws Exception
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.Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.