public class TaskManagerRunner extends Object implements FatalErrorHandler
Modifier and Type | Class and Description |
---|---|
static class |
TaskManagerRunner.Result |
static interface |
TaskManagerRunner.TaskExecutorService |
static interface |
TaskManagerRunner.TaskExecutorServiceFactory
Factory for
TaskExecutor . |
Constructor and Description |
---|
TaskManagerRunner(Configuration configuration,
PluginManager pluginManager,
TaskManagerRunner.TaskExecutorServiceFactory taskExecutorServiceFactory) |
public TaskManagerRunner(Configuration configuration, PluginManager pluginManager, TaskManagerRunner.TaskExecutorServiceFactory taskExecutorServiceFactory) throws Exception
Exception
public CompletableFuture<TaskManagerRunner.Result> closeAsync()
public CompletableFuture<TaskManagerRunner.Result> getTerminationFuture()
public void onFatalError(Throwable exception)
FatalErrorHandler
IMPORTANT: This call should never be blocking since it might be called from within the
main thread of an RpcEndpoint
.
onFatalError
in interface FatalErrorHandler
exception
- causepublic static Configuration loadConfiguration(String[] args) throws FlinkParseException
FlinkParseException
public static int runTaskManager(Configuration configuration, PluginManager pluginManager) throws Exception
Exception
public static void runTaskManagerProcessSecurely(String[] args)
public static void runTaskManagerProcessSecurely(Configuration configuration)
public static TaskManagerRunner.TaskExecutorService createTaskExecutorService(Configuration configuration, ResourceID resourceID, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry, BlobCacheService blobCacheService, boolean localCommunicationOnly, ExternalResourceInfoProvider externalResourceInfoProvider, FatalErrorHandler fatalErrorHandler) throws Exception
Exception
public static TaskExecutor startTaskManager(Configuration configuration, ResourceID resourceID, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry, BlobCacheService blobCacheService, boolean localCommunicationOnly, ExternalResourceInfoProvider externalResourceInfoProvider, FatalErrorHandler fatalErrorHandler) throws Exception
Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.