public class TaskManagerServicesConfiguration extends Object
Constructor and Description |
---|
TaskManagerServicesConfiguration(Configuration configuration,
ResourceID resourceID,
InetAddress taskManagerAddress,
boolean localCommunicationOnly,
String[] tmpDirPaths,
String[] localRecoveryStateRootDirectories,
boolean localRecoveryEnabled,
QueryableStateConfiguration queryableStateConfig,
int numberOfSlots,
int pageSize,
TaskExecutorResourceSpec taskExecutorResourceSpec,
long timerServiceShutdownTimeout,
RetryingRegistrationConfiguration retryingRegistrationConfiguration,
Optional<Time> systemResourceMetricsProbingInterval,
int numIoThreads) |
Modifier and Type | Method and Description |
---|---|
static TaskManagerServicesConfiguration |
fromConfiguration(Configuration configuration,
ResourceID resourceID,
InetAddress remoteAddress,
boolean localCommunicationOnly,
TaskExecutorResourceSpec taskExecutorResourceSpec)
Utility method to extract TaskManager config parameters from the configuration and to
sanity check them.
|
Configuration |
getConfiguration() |
MemorySize |
getManagedMemorySize() |
MemorySize |
getNetworkMemorySize() |
int |
getNumberOfSlots() |
int |
getNumIoThreads() |
int |
getPageSize() |
ResourceID |
getResourceID() |
Optional<Time> |
getSystemResourceMetricsProbingInterval() |
TaskExecutorResourceSpec |
getTaskExecutorResourceSpec() |
String[] |
getTmpDirPaths() |
public TaskManagerServicesConfiguration(Configuration configuration, ResourceID resourceID, InetAddress taskManagerAddress, boolean localCommunicationOnly, String[] tmpDirPaths, String[] localRecoveryStateRootDirectories, boolean localRecoveryEnabled, @Nullable QueryableStateConfiguration queryableStateConfig, int numberOfSlots, int pageSize, TaskExecutorResourceSpec taskExecutorResourceSpec, long timerServiceShutdownTimeout, RetryingRegistrationConfiguration retryingRegistrationConfiguration, Optional<Time> systemResourceMetricsProbingInterval, int numIoThreads)
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 int getNumIoThreads()
public static TaskManagerServicesConfiguration fromConfiguration(Configuration configuration, ResourceID resourceID, InetAddress remoteAddress, boolean localCommunicationOnly, TaskExecutorResourceSpec taskExecutorResourceSpec)
configuration
- The configuration.resourceID
- resource ID of the task managerremoteAddress
- 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.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.