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,
MetricGroup taskManagerMetricGroup,
ExecutorService ioExecutor)
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 FlinkException
TaskExecutor
services down.FlinkException
public static TaskManagerServices fromConfiguration(TaskManagerServicesConfiguration taskManagerServicesConfiguration, MetricGroup taskManagerMetricGroup, ExecutorService ioExecutor) throws Exception
taskManagerServicesConfiguration
- task manager configurationtaskManagerMetricGroup
- metric group of the task managerioExecutor
- executor for async IO operationsException
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.