public class TaskManagerServices extends Object
TaskExecutor services such as the MemoryManager, IOManager,
ShuffleEnvironment. All services are exclusive to a single TaskExecutor.
Consequently, the respective TaskExecutor is responsible for closing them.| Modifier and Type | Field and Description |
|---|---|
static String |
LOCAL_STATE_SUB_DIRECTORY_ROOT |
| Modifier and Type | Method and Description |
|---|---|
static TaskManagerServices |
fromConfiguration(TaskManagerServicesConfiguration taskManagerServicesConfiguration,
org.apache.flink.metrics.MetricGroup taskManagerMetricGroup,
Executor taskIOExecutor)
Creates and returns the task manager services.
|
BroadcastVariableManager |
getBroadcastVariableManager() |
IOManager |
getIOManager() |
JobLeaderService |
getJobLeaderService() |
JobManagerTable |
getJobManagerTable() |
KvStateService |
getKvStateService() |
ShuffleEnvironment<?,?> |
getShuffleEnvironment() |
TaskEventDispatcher |
getTaskEventDispatcher() |
TaskManagerLocation |
getTaskManagerLocation() |
TaskExecutorLocalStateStoresManager |
getTaskManagerStateStore() |
TaskSlotTable<Task> |
getTaskSlotTable() |
void |
shutDown()
Shuts the
TaskExecutor services down. |
@VisibleForTesting public static final String LOCAL_STATE_SUB_DIRECTORY_ROOT
public IOManager getIOManager()
public ShuffleEnvironment<?,?> getShuffleEnvironment()
public KvStateService getKvStateService()
public TaskManagerLocation getTaskManagerLocation()
public BroadcastVariableManager getBroadcastVariableManager()
public TaskSlotTable<Task> getTaskSlotTable()
public JobManagerTable getJobManagerTable()
public JobLeaderService getJobLeaderService()
public TaskExecutorLocalStateStoresManager getTaskManagerStateStore()
public TaskEventDispatcher getTaskEventDispatcher()
public void shutDown()
throws org.apache.flink.util.FlinkException
TaskExecutor services down.org.apache.flink.util.FlinkExceptionpublic static TaskManagerServices fromConfiguration(TaskManagerServicesConfiguration taskManagerServicesConfiguration, org.apache.flink.metrics.MetricGroup taskManagerMetricGroup, Executor taskIOExecutor) throws Exception
taskManagerServicesConfiguration - task manager configurationtaskManagerMetricGroup - metric group of the task managertaskIOExecutor - executor for async IO operationsExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.