public class TaskManagerConfiguration extends Object implements TaskManagerRuntimeInfo
TaskExecutor
.Constructor and Description |
---|
TaskManagerConfiguration(int numberSlots,
String[] tmpDirectories,
org.apache.flink.api.common.time.Time timeout,
org.apache.flink.api.common.time.Time maxRegistrationDuration,
org.apache.flink.api.common.time.Time initialRegistrationPause,
org.apache.flink.api.common.time.Time maxRegistrationPause,
org.apache.flink.api.common.time.Time refusedRegistrationPause,
org.apache.flink.configuration.Configuration configuration,
boolean exitJvmOnOutOfMemory,
FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder,
String[] alwaysParentFirstLoaderPatterns,
String taskManagerLogPath,
String taskManagerStdoutPath) |
Modifier and Type | Method and Description |
---|---|
static TaskManagerConfiguration |
fromConfiguration(org.apache.flink.configuration.Configuration configuration) |
String[] |
getAlwaysParentFirstLoaderPatterns() |
FlinkUserCodeClassLoaders.ResolveOrder |
getClassLoaderResolveOrder() |
org.apache.flink.configuration.Configuration |
getConfiguration()
Gets the configuration that the TaskManager was started with.
|
org.apache.flink.api.common.time.Time |
getInitialRegistrationPause() |
org.apache.flink.api.common.time.Time |
getMaxRegistrationDuration() |
org.apache.flink.api.common.time.Time |
getMaxRegistrationPause() |
int |
getNumberSlots() |
org.apache.flink.api.common.time.Time |
getRefusedRegistrationPause() |
String |
getTaskManagerLogPath() |
String |
getTaskManagerStdoutPath() |
org.apache.flink.api.common.time.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, org.apache.flink.api.common.time.Time timeout, @Nullable org.apache.flink.api.common.time.Time maxRegistrationDuration, org.apache.flink.api.common.time.Time initialRegistrationPause, org.apache.flink.api.common.time.Time maxRegistrationPause, org.apache.flink.api.common.time.Time refusedRegistrationPause, org.apache.flink.configuration.Configuration configuration, boolean exitJvmOnOutOfMemory, FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder, String[] alwaysParentFirstLoaderPatterns, @Nullable String taskManagerLogPath, @Nullable String taskManagerStdoutPath)
public int getNumberSlots()
public org.apache.flink.api.common.time.Time getTimeout()
@Nullable public org.apache.flink.api.common.time.Time getMaxRegistrationDuration()
public org.apache.flink.api.common.time.Time getInitialRegistrationPause()
@Nullable public org.apache.flink.api.common.time.Time getMaxRegistrationPause()
public org.apache.flink.api.common.time.Time getRefusedRegistrationPause()
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 FlinkUserCodeClassLoaders.ResolveOrder getClassLoaderResolveOrder()
public String[] getAlwaysParentFirstLoaderPatterns()
public static TaskManagerConfiguration fromConfiguration(org.apache.flink.configuration.Configuration configuration)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.