public class TaskExecutor extends org.apache.flink.runtime.rpc.RpcEndpoint implements TaskExecutorGateway
Task.| 限定符和类型 | 字段和说明 |
|---|---|
static String |
TASK_MANAGER_NAME |
| 构造器和说明 |
|---|
TaskExecutor(org.apache.flink.runtime.rpc.RpcService rpcService,
TaskManagerConfiguration taskManagerConfiguration,
HighAvailabilityServices haServices,
TaskManagerServices taskExecutorServices,
ExternalResourceInfoProvider externalResourceInfoProvider,
HeartbeatServices heartbeatServices,
TaskManagerMetricGroup taskManagerMetricGroup,
String metricQueryServiceAddress,
TaskExecutorBlobService taskExecutorBlobService,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler,
TaskExecutorPartitionTracker partitionTracker) |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Acknowledge> |
abortCheckpoint(ExecutionAttemptID executionAttemptID,
long checkpointId,
long latestCompletedCheckpointId,
long checkpointTimestamp)
Abort a checkpoint for the given task.
|
CompletableFuture<Boolean> |
canBeReleased()
Checks whether the task executor can be released.
|
CompletableFuture<Acknowledge> |
cancelTask(ExecutionAttemptID executionAttemptID,
org.apache.flink.api.common.time.Time timeout)
Cancel the given task.
|
CompletableFuture<Acknowledge> |
confirmCheckpoint(ExecutionAttemptID executionAttemptID,
long completedCheckpointId,
long completedCheckpointTimestamp,
long lastSubsumedCheckpointId)
Confirm a checkpoint for the given task.
|
void |
disconnectJobManager(org.apache.flink.api.common.JobID jobId,
Exception cause)
Disconnects the given JobManager from the TaskManager.
|
void |
disconnectResourceManager(Exception cause)
Disconnects the ResourceManager from the TaskManager.
|
void |
freeInactiveSlots(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Frees all currently inactive slot allocated for the given job.
|
CompletableFuture<Acknowledge> |
freeSlot(AllocationID allocationId,
Throwable cause,
org.apache.flink.api.common.time.Time timeout)
Frees the slot with the given allocation ID.
|
ResourceID |
getResourceID() |
CompletableFuture<Void> |
heartbeatFromJobManager(ResourceID resourceID,
AllocatedSlotReport allocatedSlotReport)
Heartbeat request from the job manager.
|
CompletableFuture<Void> |
heartbeatFromResourceManager(ResourceID resourceID)
Heartbeat request from the resource manager.
|
void |
onStart() |
CompletableFuture<Void> |
onStop()
Called to shut down the TaskManager.
|
CompletableFuture<Acknowledge> |
releaseClusterPartitions(Collection<IntermediateDataSetID> dataSetsToRelease,
org.apache.flink.api.common.time.Time timeout)
Releases all cluster partitions belong to any of the given data sets.
|
void |
releaseOrPromotePartitions(org.apache.flink.api.common.JobID jobId,
Set<ResultPartitionID> partitionToRelease,
Set<ResultPartitionID> partitionsToPromote)
Batch release/promote intermediate result partitions.
|
CompletableFuture<TransientBlobKey> |
requestFileUploadByName(String fileName,
org.apache.flink.api.common.time.Time timeout)
Requests the file upload of the specified name to the cluster's
BlobServer. |
CompletableFuture<TransientBlobKey> |
requestFileUploadByType(FileType fileType,
org.apache.flink.api.common.time.Time timeout)
Requests the file upload of the specified type to the cluster's
BlobServer. |
CompletableFuture<Collection<LogInfo>> |
requestLogList(org.apache.flink.api.common.time.Time timeout)
Requests for the historical log file names on the TaskManager.
|
CompletableFuture<org.apache.flink.types.SerializableOptional<String>> |
requestMetricQueryServiceAddress(org.apache.flink.api.common.time.Time timeout)
Returns the gateway of Metric Query Service on the TaskManager.
|
CompletableFuture<Acknowledge> |
requestSlot(SlotID slotId,
org.apache.flink.api.common.JobID jobId,
AllocationID allocationId,
ResourceProfile resourceProfile,
String targetAddress,
ResourceManagerId resourceManagerId,
org.apache.flink.api.common.time.Time timeout)
Requests a slot from the TaskManager.
|
CompletableFuture<ThreadDumpInfo> |
requestThreadDump(org.apache.flink.api.common.time.Time timeout)
Requests the thread dump from this TaskManager.
|
CompletableFuture<TaskThreadInfoResponse> |
requestThreadInfoSamples(ExecutionAttemptID taskExecutionAttemptId,
ThreadInfoSamplesRequest requestParams,
org.apache.flink.api.common.time.Time timeout)
Request a thread info sample from the given task.
|
CompletableFuture<Acknowledge> |
sendOperatorEventToTask(ExecutionAttemptID executionAttemptID,
OperatorID operatorId,
org.apache.flink.util.SerializedValue<OperatorEvent> evt)
Sends an operator event to an operator in a task executed by the Task Manager (Task
Executor).
|
CompletableFuture<Acknowledge> |
submitTask(TaskDeploymentDescriptor tdd,
JobMasterId jobMasterId,
org.apache.flink.api.common.time.Time timeout)
Submit a
Task to the TaskExecutor. |
CompletableFuture<Acknowledge> |
triggerCheckpoint(ExecutionAttemptID executionAttemptID,
long checkpointId,
long checkpointTimestamp,
CheckpointOptions checkpointOptions)
Trigger the checkpoint for the given task.
|
CompletableFuture<Acknowledge> |
updatePartitions(ExecutionAttemptID executionAttemptID,
Iterable<PartitionInfo> partitionInfos,
org.apache.flink.api.common.time.Time timeout)
Update the task where the given partitions can be found.
|
callAsync, closeAsync, getAddress, getEndpointId, getHostname, getMainThreadExecutor, getRpcService, getSelfGateway, getTerminationFuture, internalCallOnStart, internalCallOnStop, isRunning, runAsync, scheduleRunAsync, scheduleRunAsync, start, stop, validateRunsInMainThreadpublic TaskExecutor(org.apache.flink.runtime.rpc.RpcService rpcService,
TaskManagerConfiguration taskManagerConfiguration,
HighAvailabilityServices haServices,
TaskManagerServices taskExecutorServices,
ExternalResourceInfoProvider externalResourceInfoProvider,
HeartbeatServices heartbeatServices,
TaskManagerMetricGroup taskManagerMetricGroup,
@Nullable
String metricQueryServiceAddress,
TaskExecutorBlobService taskExecutorBlobService,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler,
TaskExecutorPartitionTracker partitionTracker)
public CompletableFuture<Boolean> canBeReleased()
TaskExecutorGatewaycanBeReleased 在接口中 TaskExecutorGatewaypublic CompletableFuture<Collection<LogInfo>> requestLogList(org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayrequestLogList 在接口中 TaskExecutorGatewaypublic void onStart()
throws Exception
onStart 在类中 org.apache.flink.runtime.rpc.RpcEndpointExceptionpublic CompletableFuture<Void> onStop()
onStop 在类中 org.apache.flink.runtime.rpc.RpcEndpointpublic CompletableFuture<TaskThreadInfoResponse> requestThreadInfoSamples(ExecutionAttemptID taskExecutionAttemptId, ThreadInfoSamplesRequest requestParams, org.apache.flink.api.common.time.Time timeout)
TaskExecutorThreadInfoGatewayrequestThreadInfoSamples 在接口中 TaskExecutorThreadInfoGatewaytaskExecutionAttemptId - identifying the task to samplerequestParams - parameters of the requesttimeout - of the requestpublic CompletableFuture<Acknowledge> submitTask(TaskDeploymentDescriptor tdd, JobMasterId jobMasterId, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayTask to the TaskExecutor.submitTask 在接口中 TaskExecutorGatewaytdd - describing the task to submitjobMasterId - identifying the submitting JobMastertimeout - of the submit operationpublic CompletableFuture<Acknowledge> cancelTask(ExecutionAttemptID executionAttemptID, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewaycancelTask 在接口中 TaskExecutorGatewayexecutionAttemptID - identifying the tasktimeout - for the cancel operationpublic CompletableFuture<Acknowledge> updatePartitions(ExecutionAttemptID executionAttemptID, Iterable<PartitionInfo> partitionInfos, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayupdatePartitions 在接口中 TaskExecutorGatewayexecutionAttemptID - identifying the taskpartitionInfos - telling where the partition can be retrieved fromtimeout - for the update partitions operationpublic void releaseOrPromotePartitions(org.apache.flink.api.common.JobID jobId,
Set<ResultPartitionID> partitionToRelease,
Set<ResultPartitionID> partitionsToPromote)
TaskExecutorGatewayreleaseOrPromotePartitions 在接口中 TaskExecutorGatewayjobId - id of the job that the partitions belong topartitionToRelease - partition ids to releasepartitionsToPromote - partitions ids to promotepublic CompletableFuture<Acknowledge> releaseClusterPartitions(Collection<IntermediateDataSetID> dataSetsToRelease, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayreleaseClusterPartitions 在接口中 TaskExecutorGatewaydataSetsToRelease - data sets for which all cluster partitions should be releasedtimeout - for the partitions release operationpublic CompletableFuture<Void> heartbeatFromJobManager(ResourceID resourceID, AllocatedSlotReport allocatedSlotReport)
TaskExecutorGatewayheartbeatFromJobManager 在接口中 TaskExecutorGatewayresourceID - unique id of the job managerpublic CompletableFuture<Void> heartbeatFromResourceManager(ResourceID resourceID)
TaskExecutorGatewayheartbeatFromResourceManager 在接口中 TaskExecutorGatewayresourceID - unique id of the resource managerpublic CompletableFuture<Acknowledge> triggerCheckpoint(ExecutionAttemptID executionAttemptID, long checkpointId, long checkpointTimestamp, CheckpointOptions checkpointOptions)
TaskExecutorGatewaytriggerCheckpoint 在接口中 TaskExecutorGatewayexecutionAttemptID - identifying the taskcheckpointId - unique id for the checkpointcheckpointTimestamp - is the timestamp when the checkpoint has been initiatedcheckpointOptions - for performing the checkpointpublic CompletableFuture<Acknowledge> confirmCheckpoint(ExecutionAttemptID executionAttemptID, long completedCheckpointId, long completedCheckpointTimestamp, long lastSubsumedCheckpointId)
TaskExecutorGatewayconfirmCheckpoint 在接口中 TaskExecutorGatewayexecutionAttemptID - identifying the taskcompletedCheckpointId - unique id for the completed checkpointcompletedCheckpointTimestamp - is the timestamp when the checkpoint has been initiatedlastSubsumedCheckpointId - unique id for the checkpoint to be subsumedpublic CompletableFuture<Acknowledge> abortCheckpoint(ExecutionAttemptID executionAttemptID, long checkpointId, long latestCompletedCheckpointId, long checkpointTimestamp)
TaskExecutorGatewayabortCheckpoint 在接口中 TaskExecutorGatewayexecutionAttemptID - identifying the taskcheckpointId - unique id for the checkpointlatestCompletedCheckpointId - the id of the latest completed checkpointcheckpointTimestamp - is the timestamp when the checkpoint has been initiatedpublic CompletableFuture<Acknowledge> requestSlot(SlotID slotId, org.apache.flink.api.common.JobID jobId, AllocationID allocationId, ResourceProfile resourceProfile, String targetAddress, ResourceManagerId resourceManagerId, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayrequestSlot 在接口中 TaskExecutorGatewayslotId - slot id for the requestjobId - for which to request a slotallocationId - id for the requestresourceProfile - of requested slot, used only for dynamic slot allocation and will be
ignored otherwisetargetAddress - to which to offer the requested slotsresourceManagerId - current leader id of the ResourceManagertimeout - for the operationpublic CompletableFuture<Acknowledge> freeSlot(AllocationID allocationId, Throwable cause, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayfreeSlot 在接口中 TaskExecutorGatewayallocationId - identifying the slot to freecause - of the freeing operationtimeout - for the operationpublic void freeInactiveSlots(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayfreeInactiveSlots 在接口中 TaskExecutorGatewayjobId - job for which all inactive slots should be releasedtimeout - for the operationpublic CompletableFuture<TransientBlobKey> requestFileUploadByType(FileType fileType, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayBlobServer.requestFileUploadByType 在接口中 TaskExecutorGatewayfileType - to uploadtimeout - for the asynchronous operationTransientBlobKey of the uploaded file.public CompletableFuture<TransientBlobKey> requestFileUploadByName(String fileName, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayBlobServer.requestFileUploadByName 在接口中 TaskExecutorGatewayfileName - to uploadtimeout - for the asynchronous operationTransientBlobKey of the uploaded file.public CompletableFuture<org.apache.flink.types.SerializableOptional<String>> requestMetricQueryServiceAddress(org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayrequestMetricQueryServiceAddress 在接口中 TaskExecutorGatewaypublic void disconnectJobManager(org.apache.flink.api.common.JobID jobId,
Exception cause)
TaskExecutorGatewaydisconnectJobManager 在接口中 TaskExecutorGatewayjobId - JobID for which the JobManager was the leadercause - for the disconnection from the JobManagerpublic void disconnectResourceManager(Exception cause)
TaskExecutorGatewaydisconnectResourceManager 在接口中 TaskExecutorGatewaycause - for the disconnection from the ResourceManagerpublic CompletableFuture<Acknowledge> sendOperatorEventToTask(ExecutionAttemptID executionAttemptID, OperatorID operatorId, org.apache.flink.util.SerializedValue<OperatorEvent> evt)
TaskExecutorOperatorEventGatewayThe reception is acknowledged (future is completed) when the event has been dispatched to
the AbstractInvokable.dispatchOperatorEvent(OperatorID,
SerializedValue) method. It is not guaranteed that the event is processed successfully
within the implementation. These cases are up to the task and event sender to handle (for
example with an explicit response message upon success, or by triggering failure/recovery
upon exception).
public CompletableFuture<ThreadDumpInfo> requestThreadDump(org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayrequestThreadDump 在接口中 TaskExecutorGatewaytimeout - timeout for the asynchronous operationThreadDumpInfo for this TaskManager.public ResourceID getResourceID()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.