public class TaskManagerConfiguration extends Object implements TaskManagerRuntimeInfo
TaskExecutor
.构造器和说明 |
---|
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.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,
RetryingRegistrationConfiguration retryingRegistrationConfiguration) |
限定符和类型 | 方法和说明 |
---|---|
static TaskManagerConfiguration |
fromConfiguration(org.apache.flink.configuration.Configuration configuration,
TaskExecutorResourceSpec taskExecutorResourceSpec) |
String[] |
getAlwaysParentFirstLoaderPatterns() |
FlinkUserCodeClassLoaders.ResolveOrder |
getClassLoaderResolveOrder() |
org.apache.flink.configuration.Configuration |
getConfiguration()
Gets the configuration that the TaskManager was started with.
|
ResourceProfile |
getDefaultSlotResourceProfile() |
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() |
RetryingRegistrationConfiguration |
getRetryingRegistrationConfiguration() |
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.
|
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.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, 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.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
在接口中 TaskManagerRuntimeInfo
public String[] getTmpDirectories()
TaskManagerRuntimeInfo
getTmpDirectories
在接口中 TaskManagerRuntimeInfo
public boolean shouldExitJvmOnOutOfMemoryError()
TaskManagerRuntimeInfo
shouldExitJvmOnOutOfMemoryError
在接口中 TaskManagerRuntimeInfo
public FlinkUserCodeClassLoaders.ResolveOrder getClassLoaderResolveOrder()
public String[] getAlwaysParentFirstLoaderPatterns()
public RetryingRegistrationConfiguration getRetryingRegistrationConfiguration()
public static TaskManagerConfiguration fromConfiguration(org.apache.flink.configuration.Configuration configuration, TaskExecutorResourceSpec taskExecutorResourceSpec)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.