public class TaskManagerConfiguration extends Object implements TaskManagerRuntimeInfo
TaskExecutor
.Constructor and Description |
---|
TaskManagerConfiguration(int numberSlots,
ResourceProfile defaultSlotResourceProfile,
ResourceProfile totalResourceProfile,
String[] tmpDirectories,
Time timeout,
Time maxRegistrationDuration,
Configuration configuration,
boolean exitJvmOnOutOfMemory,
String taskManagerLogPath,
String taskManagerStdoutPath,
String taskManagerLogDir,
String taskManagerExternalAddress,
RetryingRegistrationConfiguration retryingRegistrationConfiguration) |
Modifier and Type | Method and Description |
---|---|
static TaskManagerConfiguration |
fromConfiguration(Configuration configuration,
TaskExecutorResourceSpec taskExecutorResourceSpec,
String externalAddress) |
Configuration |
getConfiguration()
Gets the configuration that the TaskManager was started with.
|
ResourceProfile |
getDefaultSlotResourceProfile() |
Time |
getMaxRegistrationDuration() |
int |
getNumberSlots() |
RetryingRegistrationConfiguration |
getRetryingRegistrationConfiguration() |
String |
getTaskManagerExternalAddress()
Gets the external address of the TaskManager.
|
String |
getTaskManagerLogDir() |
String |
getTaskManagerLogPath() |
String |
getTaskManagerStdoutPath() |
Time |
getTimeout() |
String[] |
getTmpDirectories()
Gets the list of temporary file directories.
|
ResourceProfile |
getTotalResourceProfile() |
boolean |
shouldExitJvmOnOutOfMemoryError()
Checks whether the TaskManager should exit the JVM when the task thread throws an
OutOfMemoryError.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTaskManagerBindAddress
public TaskManagerConfiguration(int numberSlots, ResourceProfile defaultSlotResourceProfile, ResourceProfile totalResourceProfile, String[] tmpDirectories, Time timeout, @Nullable Time maxRegistrationDuration, Configuration configuration, boolean exitJvmOnOutOfMemory, @Nullable String taskManagerLogPath, @Nullable String taskManagerStdoutPath, @Nullable String taskManagerLogDir, String taskManagerExternalAddress, RetryingRegistrationConfiguration retryingRegistrationConfiguration)
public int getNumberSlots()
public ResourceProfile getDefaultSlotResourceProfile()
public ResourceProfile getTotalResourceProfile()
public Time getTimeout()
public Configuration getConfiguration()
TaskManagerRuntimeInfo
getConfiguration
in interface TaskManagerRuntimeInfo
public String[] getTmpDirectories()
TaskManagerRuntimeInfo
getTmpDirectories
in interface TaskManagerRuntimeInfo
public boolean shouldExitJvmOnOutOfMemoryError()
TaskManagerRuntimeInfo
shouldExitJvmOnOutOfMemoryError
in interface TaskManagerRuntimeInfo
public String getTaskManagerExternalAddress()
TaskManagerRuntimeInfo
getTaskManagerExternalAddress
in interface TaskManagerRuntimeInfo
public RetryingRegistrationConfiguration getRetryingRegistrationConfiguration()
public static TaskManagerConfiguration fromConfiguration(Configuration configuration, TaskExecutorResourceSpec taskExecutorResourceSpec, String externalAddress)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.