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.public long getManagedMemorySize()
public IOManager getIOManager()
public ShuffleEnvironment<?,?> getShuffleEnvironment()
public KvStateService getKvStateService()
public UnresolvedTaskManagerLocation getUnresolvedTaskManagerLocation()
public BroadcastVariableManager getBroadcastVariableManager()
public TaskSlotTable<Task> getTaskSlotTable()
public JobTable getJobTable()
public JobLeaderService getJobLeaderService()
public TaskExecutorLocalStateStoresManager getTaskManagerStateStore()
public TaskExecutorFileMergingManager getTaskManagerFileMergingManager()
public TaskExecutorStateChangelogStoragesManager getTaskManagerChangelogManager()
public TaskExecutorChannelStateExecutorFactoryManager getTaskManagerChannelStateManager()
public TaskEventDispatcher getTaskEventDispatcher()
public Executor getIOExecutor()
public LibraryCacheManager getLibraryCacheManager()
public SharedResources getSharedResources()
public GroupCache<JobID,PermanentBlobKey,JobInformation> getJobInformationCache()
public GroupCache<JobID,PermanentBlobKey,TaskInformation> getTaskInformationCache()
public GroupCache<JobID,PermanentBlobKey,TaskDeploymentDescriptorFactory.ShuffleDescriptorGroup> getShuffleDescriptorCache()
public void shutDown() throws FlinkException
TaskExecutor
services down.FlinkException
public static TaskManagerServices fromConfiguration(TaskManagerServicesConfiguration taskManagerServicesConfiguration, PermanentBlobService permanentBlobService, MetricGroup taskManagerMetricGroup, ExecutorService ioExecutor, ScheduledExecutor scheduledExecutor, FatalErrorHandler fatalErrorHandler, WorkingDirectory workingDirectory) throws Exception
taskManagerServicesConfiguration
- task manager configurationpermanentBlobService
- permanentBlobService used by the servicestaskManagerMetricGroup
- metric group of the task managerioExecutor
- executor for async IO operationsscheduledExecutor
- scheduled executor in rpc servicefatalErrorHandler
- to handle class loading OOMsworkingDirectory
- the working directory of the processException
public SlotAllocationSnapshotPersistenceService getSlotAllocationSnapshotPersistenceService()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.