public class TaskManagerConfiguration extends Object implements TaskManagerRuntimeInfo
TaskExecutor
.Constructor and Description |
---|
TaskManagerConfiguration(int numberSlots,
String[] tmpDirectories,
Time timeout,
Time maxRegistrationDuration,
Time initialRegistrationPause,
Time maxRegistrationPause,
Time refusedRegistrationPause,
Configuration configuration,
boolean exitJvmOnOutOfMemory,
FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder,
String[] alwaysParentFirstLoaderPatterns,
String taskManagerLogPath,
String taskManagerStdoutPath) |
Modifier and Type | Method and Description |
---|---|
static TaskManagerConfiguration |
fromConfiguration(Configuration configuration) |
String[] |
getAlwaysParentFirstLoaderPatterns() |
FlinkUserCodeClassLoaders.ResolveOrder |
getClassLoaderResolveOrder() |
Configuration |
getConfiguration()
Gets the configuration that the TaskManager was started with.
|
Time |
getInitialRegistrationPause() |
Time |
getMaxRegistrationDuration() |
Time |
getMaxRegistrationPause() |
int |
getNumberSlots() |
Time |
getRefusedRegistrationPause() |
String |
getTaskManagerLogPath() |
String |
getTaskManagerStdoutPath() |
Time |
getTimeout() |
String[] |
getTmpDirectories()
Gets the list of temporary file directories.
|
boolean |
shouldExitJvmOnOutOfMemoryError()
Checks whether the TaskManager should exit the JVM when the task thread throws
an OutOfMemoryError.
|
public TaskManagerConfiguration(int numberSlots, String[] tmpDirectories, Time timeout, @Nullable Time maxRegistrationDuration, Time initialRegistrationPause, Time maxRegistrationPause, Time refusedRegistrationPause, Configuration configuration, boolean exitJvmOnOutOfMemory, FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder, String[] alwaysParentFirstLoaderPatterns, @Nullable String taskManagerLogPath, @Nullable String taskManagerStdoutPath)
public int getNumberSlots()
public Time getTimeout()
public Time getInitialRegistrationPause()
public Time getRefusedRegistrationPause()
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 FlinkUserCodeClassLoaders.ResolveOrder getClassLoaderResolveOrder()
public String[] getAlwaysParentFirstLoaderPatterns()
public static TaskManagerConfiguration fromConfiguration(Configuration configuration)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.