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.
| Modifier and Type | Field and Description |
|---|---|
protected TaskExecutorGateway |
originalGateway |
| Modifier | Constructor and Description |
|---|---|
protected |
TaskExecutorGatewayDecoratorBase(TaskExecutorGateway originalGateway) |
| Modifier and Type | Method and Description |
|---|---|
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> |
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 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 in interface org.apache.flink.runtime.rpc.RpcGatewaypublic String getHostname()
getHostname in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface TaskExecutorGatewayexecutionAttemptID - identifying the tasktimeout - for the cancel operationpublic CompletableFuture<Void> heartbeatFromJobManager(ResourceID heartbeatOrigin, AllocatedSlotReport allocatedSlotReport)
TaskExecutorGatewayheartbeatFromJobManager in interface TaskExecutorGatewayheartbeatOrigin - unique id of the job managerpublic CompletableFuture<Void> heartbeatFromResourceManager(ResourceID heartbeatOrigin)
TaskExecutorGatewayheartbeatFromResourceManager in interface TaskExecutorGatewayheartbeatOrigin - unique id of the resource managerpublic void disconnectJobManager(org.apache.flink.api.common.JobID jobId,
Exception cause)
TaskExecutorGatewaydisconnectJobManager in interface TaskExecutorGatewayjobId - JobID for which the JobManager was the leadercause - for the disconnection from the JobManagerpublic void disconnectResourceManager(Exception cause)
TaskExecutorGatewaydisconnectResourceManager in interface TaskExecutorGatewaycause - for the disconnection from the ResourceManagerpublic CompletableFuture<Acknowledge> freeSlot(AllocationID allocationId, Throwable cause, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayfreeSlot in interface 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 in interface 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 in interface 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 in interface 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 in interface TaskExecutorGatewaypublic CompletableFuture<Boolean> canBeReleased()
TaskExecutorGatewaycanBeReleased in interface TaskExecutorGatewaypublic CompletableFuture<Collection<LogInfo>> requestLogList(org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayrequestLogList in interface 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).
sendOperatorEventToTask in interface TaskExecutorGatewaysendOperatorEventToTask in interface TaskExecutorOperatorEventGatewaypublic CompletableFuture<ThreadDumpInfo> requestThreadDump(org.apache.flink.api.common.time.Time timeout)
TaskExecutorGatewayrequestThreadDump in interface TaskExecutorGatewaytimeout - timeout for the asynchronous operationThreadDumpInfo for this TaskManager.public CompletableFuture<TaskThreadInfoResponse> requestThreadInfoSamples(ExecutionAttemptID taskExecutionAttemptId, ThreadInfoSamplesRequest requestParams, org.apache.flink.api.common.time.Time timeout)
TaskExecutorThreadInfoGatewayrequestThreadInfoSamples in interface TaskExecutorThreadInfoGatewaytaskExecutionAttemptId - identifying the task to samplerequestParams - parameters of the requesttimeout - of the requestCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.