public class RpcTaskManagerGateway extends Object implements TaskManagerGateway
TaskManagerGateway for Flink's RPC system.| Constructor and Description |
|---|
RpcTaskManagerGateway(TaskExecutorGateway taskExecutorGateway,
JobMasterId jobMasterId) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Acknowledge> |
cancelTask(ExecutionAttemptID executionAttemptID,
org.apache.flink.api.common.time.Time timeout)
Cancel the given task.
|
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()
Return the address of the task manager with which the gateway is associated.
|
void |
notifyCheckpointComplete(ExecutionAttemptID executionAttemptID,
org.apache.flink.api.common.JobID jobId,
long checkpointId,
long timestamp)
Notify the given task about a completed checkpoint.
|
void |
releasePartitions(org.apache.flink.api.common.JobID jobId,
Set<ResultPartitionID> partitionIds)
Batch release intermediate result partitions.
|
CompletableFuture<TaskBackPressureResponse> |
requestTaskBackPressure(ExecutionAttemptID executionAttemptID,
int requestId,
org.apache.flink.api.common.time.Time timeout)
Request the back pressure ratio for the given task.
|
CompletableFuture<Acknowledge> |
submitTask(TaskDeploymentDescriptor tdd,
org.apache.flink.api.common.time.Time timeout)
Submit a task to the task manager.
|
void |
triggerCheckpoint(ExecutionAttemptID executionAttemptID,
org.apache.flink.api.common.JobID jobId,
long checkpointId,
long timestamp,
CheckpointOptions checkpointOptions,
boolean advanceToEndOfEventTime)
Trigger for the given task a checkpoint.
|
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.
|
public RpcTaskManagerGateway(TaskExecutorGateway taskExecutorGateway, JobMasterId jobMasterId)
public String getAddress()
TaskManagerGatewaygetAddress in interface TaskManagerGatewaypublic CompletableFuture<TaskBackPressureResponse> requestTaskBackPressure(ExecutionAttemptID executionAttemptID, int requestId, org.apache.flink.api.common.time.Time timeout)
TaskManagerGatewayrequestTaskBackPressure in interface TaskManagerGatewayexecutionAttemptID - identifying the task to request.requestId - id of the request.timeout - rpc request timeout.public CompletableFuture<Acknowledge> submitTask(TaskDeploymentDescriptor tdd, org.apache.flink.api.common.time.Time timeout)
TaskManagerGatewaysubmitTask in interface TaskManagerGatewaytdd - describing the task to submittimeout - of the submit operationpublic CompletableFuture<Acknowledge> cancelTask(ExecutionAttemptID executionAttemptID, org.apache.flink.api.common.time.Time timeout)
TaskManagerGatewaycancelTask in interface TaskManagerGatewayexecutionAttemptID - identifying the tasktimeout - of the submit operationpublic CompletableFuture<Acknowledge> updatePartitions(ExecutionAttemptID executionAttemptID, Iterable<PartitionInfo> partitionInfos, org.apache.flink.api.common.time.Time timeout)
TaskManagerGatewayupdatePartitions in interface TaskManagerGatewayexecutionAttemptID - identifying the taskpartitionInfos - telling where the partition can be retrieved fromtimeout - of the submit operationpublic void releasePartitions(org.apache.flink.api.common.JobID jobId,
Set<ResultPartitionID> partitionIds)
TaskManagerGatewayreleasePartitions in interface TaskManagerGatewayjobId - id of the job that the partitions belong topartitionIds - partition ids to releasepublic void notifyCheckpointComplete(ExecutionAttemptID executionAttemptID, org.apache.flink.api.common.JobID jobId, long checkpointId, long timestamp)
TaskManagerGatewaynotifyCheckpointComplete in interface TaskManagerGatewayexecutionAttemptID - identifying the taskjobId - identifying the job to which the task belongscheckpointId - of the completed checkpointtimestamp - of the completed checkpointpublic void triggerCheckpoint(ExecutionAttemptID executionAttemptID, org.apache.flink.api.common.JobID jobId, long checkpointId, long timestamp, CheckpointOptions checkpointOptions, boolean advanceToEndOfEventTime)
TaskManagerGatewaytriggerCheckpoint in interface TaskManagerGatewayexecutionAttemptID - identifying the taskjobId - identifying the job to which the task belongscheckpointId - of the checkpoint to triggertimestamp - of the checkpoint to triggercheckpointOptions - of the checkpoint to triggeradvanceToEndOfEventTime - Flag indicating if the source should inject a MAX_WATERMARK in the pipeline
to fire any registered event-time timerspublic CompletableFuture<Acknowledge> freeSlot(AllocationID allocationId, Throwable cause, org.apache.flink.api.common.time.Time timeout)
TaskManagerGatewayfreeSlot in interface TaskManagerGatewayallocationId - identifying the slot to freecause - of the freeing operationtimeout - for the operationCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.