Class TaskManagerServices
java.lang.Object
org.apache.flink.runtime.taskexecutor.TaskManagerServices
Container for
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.-
Method Summary
Modifier and TypeMethodDescriptionstatic TaskManagerServicesfromConfiguration(TaskManagerServicesConfiguration taskManagerServicesConfiguration, PermanentBlobService permanentBlobService, org.apache.flink.metrics.MetricGroup taskManagerMetricGroup, ExecutorService ioExecutor, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler, WorkingDirectory workingDirectory) Creates and returns the task manager services.GroupCache<org.apache.flink.api.common.JobID,PermanentBlobKey, JobInformation> longGroupCache<org.apache.flink.api.common.JobID,PermanentBlobKey, TaskDeploymentDescriptorFactory.ShuffleDescriptorGroup> ShuffleEnvironment<?,?> GroupCache<org.apache.flink.api.common.JobID,PermanentBlobKey, TaskInformation> voidshutDown()Shuts theTaskExecutorservices down.
-
Method Details
-
getManagedMemorySize
public long getManagedMemorySize() -
getIOManager
-
getShuffleEnvironment
-
getKvStateService
-
getUnresolvedTaskManagerLocation
-
getBroadcastVariableManager
-
getTaskSlotTable
-
getJobTable
-
getJobLeaderService
-
getTaskManagerStateStore
-
getTaskManagerFileMergingManager
-
getTaskManagerChangelogManager
-
getTaskManagerChannelStateManager
-
getTaskEventDispatcher
-
getIOExecutor
-
getLibraryCacheManager
-
getJobInformationCache
public GroupCache<org.apache.flink.api.common.JobID,PermanentBlobKey, getJobInformationCache()JobInformation> -
getTaskInformationCache
public GroupCache<org.apache.flink.api.common.JobID,PermanentBlobKey, getTaskInformationCache()TaskInformation> -
getShuffleDescriptorCache
public GroupCache<org.apache.flink.api.common.JobID,PermanentBlobKey, getShuffleDescriptorCache()TaskDeploymentDescriptorFactory.ShuffleDescriptorGroup> -
shutDown
public void shutDown() throws org.apache.flink.util.FlinkExceptionShuts theTaskExecutorservices down.- Throws:
org.apache.flink.util.FlinkException
-
fromConfiguration
public static TaskManagerServices fromConfiguration(TaskManagerServicesConfiguration taskManagerServicesConfiguration, PermanentBlobService permanentBlobService, org.apache.flink.metrics.MetricGroup taskManagerMetricGroup, ExecutorService ioExecutor, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler, WorkingDirectory workingDirectory) throws Exception Creates and returns the task manager services.- Parameters:
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 process- Returns:
- task manager components
- Throws:
Exception
-
getSlotAllocationSnapshotPersistenceService
-