public class TaskManagerConfiguration extends Object implements TaskManagerRuntimeInfo
TaskExecutor
.Constructor and Description |
---|
TaskManagerConfiguration(int numberSlots,
ResourceProfile defaultSlotResourceProfile,
ResourceProfile totalResourceProfile,
String[] tmpDirectories,
org.apache.flink.api.common.time.Time timeout,
org.apache.flink.api.common.time.Time maxRegistrationDuration,
org.apache.flink.configuration.Configuration configuration,
boolean exitJvmOnOutOfMemory,
String taskManagerLogPath,
String taskManagerStdoutPath,
String taskManagerLogDir,
String taskManagerExternalAddress,
RetryingRegistrationConfiguration retryingRegistrationConfiguration) |
Modifier and Type | Method and Description |
---|---|
static TaskManagerConfiguration |
fromConfiguration(org.apache.flink.configuration.Configuration configuration,
TaskExecutorResourceSpec taskExecutorResourceSpec,
String externalAddress) |
org.apache.flink.configuration.Configuration |
getConfiguration()
Gets the configuration that the TaskManager was started with.
|
ResourceProfile |
getDefaultSlotResourceProfile() |
org.apache.flink.api.common.time.Time |
getMaxRegistrationDuration() |
int |
getNumberSlots() |
RetryingRegistrationConfiguration |
getRetryingRegistrationConfiguration() |
String |
getTaskManagerExternalAddress()
Gets the external address of the TaskManager.
|
String |
getTaskManagerLogDir() |
String |
getTaskManagerLogPath() |
String |
getTaskManagerStdoutPath() |
org.apache.flink.api.common.time.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, org.apache.flink.api.common.time.Time timeout, @Nullable org.apache.flink.api.common.time.Time maxRegistrationDuration, org.apache.flink.configuration.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 org.apache.flink.api.common.time.Time getTimeout()
@Nullable public org.apache.flink.api.common.time.Time getMaxRegistrationDuration()
public org.apache.flink.configuration.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(org.apache.flink.configuration.Configuration configuration, TaskExecutorResourceSpec taskExecutorResourceSpec, String externalAddress)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.