public class TaskExecutorGatewayDecoratorBase extends Object implements TaskExecutorGateway
TaskExecutorGateway.
This class is meant as a base for custom decorators, to avoid having to maintain all the method overrides in each decorator.
| 限定符和类型 | 字段和说明 |
|---|---|
protected TaskExecutorGateway |
originalGateway |
| 限定符 | 构造器和说明 |
|---|---|
protected |
TaskExecutorGatewayDecoratorBase(TaskExecutorGateway originalGateway) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
String |
getAddress() |
String |
getHostname() |
CompletableFuture<Void> |
heartbeatFromJobManager(ResourceID heartbeatOrigin,
AllocatedSlotReport allocatedSlotReport)
Heartbeat request from the job manager.
|
CompletableFuture<Void> |
heartbeatFromResourceManager(ResourceID heartbeatOrigin)
Heartbeat request from the resource manager.
|
CompletableFuture<Acknowledge> |
promotePartitions(org.apache.flink.api.common.JobID jobId,
Set<ResultPartitionID> partitionIds)
Batch promote intermediate result partitions.
|
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 |
releasePartitions(org.apache.flink.api.common.JobID jobId,
Set<ResultPartitionID> partitionIds)
Batch release 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(Collection<ExecutionAttemptID> taskExecutionAttemptIds,
ThreadInfoSamplesRequest requestParams,
org.apache.flink.api.common.time.Time timeout)
Request a thread info sample from the given tasks.
|
CompletableFuture<Acknowledge> |
sendOperatorEventToTask(ExecutionAttemptID task,
OperatorID operator,
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.
|
protected final TaskExecutorGateway originalGateway
protected TaskExecutorGatewayDecoratorBase(TaskExecutorGateway originalGateway)
public String getAddress()
getAddress 在接口中 org.apache.flink.runtime.rpc.RpcGatewaypublic String getHostname()
getHostname 在接口中 org.apache.flink.runtime.rpc.RpcGatewaypublic 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> 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> 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 releasePartitions(org.apache.flink.api.common.JobID jobId,
Set<ResultPartitionID> partitionIds)
TaskExecutorGatewayreleasePartitions 在接口中 TaskExecutorGatewayjobId - id of the job that the partitions belong topartitionIds - partition ids to releasepublic CompletableFuture<Acknowledge> promotePartitions(org.apache.flink.api.common.JobID jobId, Set<ResultPartitionID> partitionIds)
TaskExecutorGatewaypromotePartitions 在接口中 TaskExecutorGatewayjobId - id of the job that the partitions belong topartitionIds - partition ids to releasepublic 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<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> cancelTask(ExecutionAttemptID executionAttemptID, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewaycancelTask 在接口中 TaskExecutorGatewayexecutionAttemptID - identifying the tasktimeout - for the cancel operationpublic CompletableFuture<Void> heartbeatFromJobManager(ResourceID heartbeatOrigin, AllocatedSlotReport allocatedSlotReport)
TaskExecutorGatewayheartbeatFromJobManager 在接口中 TaskExecutorGatewayheartbeatOrigin - unique id of the job managerpublic CompletableFuture<Void> heartbeatFromResourceManager(ResourceID heartbeatOrigin)
TaskExecutorGatewayheartbeatFromResourceManager 在接口中 TaskExecutorGatewayheartbeatOrigin - unique id of the resource managerpublic 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> 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 CompletableFuture<Boolean> canBeReleased()
TaskExecutorGatewaycanBeReleased 在接口中 TaskExecutorGatewaypublic CompletableFuture<Collection<LogInfo>> requestLogList(org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayrequestLogList 在接口中 TaskExecutorGatewaypublic CompletableFuture<Acknowledge> sendOperatorEventToTask(ExecutionAttemptID task, OperatorID operator, 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 CompletableFuture<TaskThreadInfoResponse> requestThreadInfoSamples(Collection<ExecutionAttemptID> taskExecutionAttemptIds, ThreadInfoSamplesRequest requestParams, org.apache.flink.api.common.time.Time timeout)
TaskExecutorThreadInfoGatewayrequestThreadInfoSamples 在接口中 TaskExecutorThreadInfoGatewaytaskExecutionAttemptIds - identifying the task to samplerequestParams - parameters of the requesttimeout - of the requestCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.