Class TaskManagerConfiguration
java.lang.Object
org.apache.flink.runtime.taskexecutor.TaskManagerConfiguration
- All Implemented Interfaces:
TaskManagerRuntimeInfo
Configuration object for
TaskExecutor.-
Constructor Summary
ConstructorsConstructorDescriptionTaskManagerConfiguration(int numberSlots, ResourceProfile defaultSlotResourceProfile, ResourceProfile totalResourceProfile, String[] tmpDirectories, Duration rpcTimeout, Duration slotTimeout, Duration maxRegistrationDuration, org.apache.flink.configuration.Configuration configuration, boolean exitJvmOnOutOfMemory, String taskManagerLogPath, String taskManagerStdoutPath, String taskManagerLogDir, String taskManagerExternalAddress, File tmpWorkingDirectory, RetryingRegistrationConfiguration retryingRegistrationConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskManagerConfigurationfromConfiguration(org.apache.flink.configuration.Configuration configuration, TaskExecutorResourceSpec taskExecutorResourceSpec, String externalAddress, File tmpWorkingDirectory) org.apache.flink.configuration.ConfigurationGets the configuration that the TaskManager was started with.intGets the external address of the TaskManager.String[]Gets the list of temporary file directories.Gets the temporary working directory of the TaskManager instance.booleanChecks whether the TaskManager should exit the JVM when the task thread throws an OutOfMemoryError.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.taskmanager.TaskManagerRuntimeInfo
getTaskManagerBindAddress
-
Constructor Details
-
TaskManagerConfiguration
public TaskManagerConfiguration(int numberSlots, ResourceProfile defaultSlotResourceProfile, ResourceProfile totalResourceProfile, String[] tmpDirectories, Duration rpcTimeout, Duration slotTimeout, @Nullable Duration maxRegistrationDuration, org.apache.flink.configuration.Configuration configuration, boolean exitJvmOnOutOfMemory, @Nullable String taskManagerLogPath, @Nullable String taskManagerStdoutPath, @Nullable String taskManagerLogDir, String taskManagerExternalAddress, File tmpWorkingDirectory, RetryingRegistrationConfiguration retryingRegistrationConfiguration)
-
-
Method Details
-
getNumberSlots
public int getNumberSlots() -
getDefaultSlotResourceProfile
-
getTotalResourceProfile
-
getRpcTimeout
-
getSlotTimeout
-
getMaxRegistrationDuration
-
getConfiguration
public org.apache.flink.configuration.Configuration getConfiguration()Description copied from interface:TaskManagerRuntimeInfoGets the configuration that the TaskManager was started with.- Specified by:
getConfigurationin interfaceTaskManagerRuntimeInfo- Returns:
- The configuration that the TaskManager was started with.
-
getTmpDirectories
Description copied from interface:TaskManagerRuntimeInfoGets the list of temporary file directories.- Specified by:
getTmpDirectoriesin interfaceTaskManagerRuntimeInfo- Returns:
- The list of temporary file directories.
-
shouldExitJvmOnOutOfMemoryError
public boolean shouldExitJvmOnOutOfMemoryError()Description copied from interface:TaskManagerRuntimeInfoChecks whether the TaskManager should exit the JVM when the task thread throws an OutOfMemoryError.- Specified by:
shouldExitJvmOnOutOfMemoryErrorin interfaceTaskManagerRuntimeInfo- Returns:
- True to terminate the JVM on an OutOfMemoryError, false otherwise.
-
getTaskManagerLogPath
-
getTaskManagerStdoutPath
-
getTaskManagerLogDir
-
getTaskManagerExternalAddress
Description copied from interface:TaskManagerRuntimeInfoGets the external address of the TaskManager.- Specified by:
getTaskManagerExternalAddressin interfaceTaskManagerRuntimeInfo- Returns:
- The external address of the TaskManager.
-
getTmpWorkingDirectory
Description copied from interface:TaskManagerRuntimeInfoGets the temporary working directory of the TaskManager instance.- Specified by:
getTmpWorkingDirectoryin interfaceTaskManagerRuntimeInfo- Returns:
- The temporary working directory of the TaskManager.
-
getRetryingRegistrationConfiguration
-
fromConfiguration
public static TaskManagerConfiguration fromConfiguration(org.apache.flink.configuration.Configuration configuration, TaskExecutorResourceSpec taskExecutorResourceSpec, String externalAddress, File tmpWorkingDirectory)
-