public interface TaskExecutorGateway extends RpcGateway
TaskExecutor RPC gateway interface| Modifier and Type | Method and Description |
|---|---|
Future<Acknowledge> |
cancelTask(ExecutionAttemptID executionAttemptID,
Time timeout)
Cancel the given task.
|
Future<Acknowledge> |
confirmCheckpoint(ExecutionAttemptID executionAttemptID,
long checkpointId,
long checkpointTimestamp)
Confirm a checkpoint for the given task.
|
void |
disconnectJobManager(JobID jobId,
Exception cause)
Disconnects the given JobManager from the TaskManager.
|
void |
disconnectResourceManager(Exception cause)
Disconnects the ResourceManager from the TaskManager.
|
void |
failPartition(ExecutionAttemptID executionAttemptID)
Fail all intermediate result partitions of the given task.
|
void |
heartbeatFromJobManager(ResourceID heartbeatOrigin)
Heartbeat request from the job manager
|
void |
heartbeatFromResourceManager(ResourceID heartbeatOrigin)
Heartbeat request from the resource manager
|
Future<Acknowledge> |
requestSlot(SlotID slotId,
JobID jobId,
AllocationID allocationId,
String targetAddress,
UUID resourceManagerLeaderId,
Time timeout)
Requests a slot from the TaskManager
|
Future<Acknowledge> |
stopTask(ExecutionAttemptID executionAttemptID,
Time timeout)
Stop the given task.
|
Future<Acknowledge> |
submitTask(TaskDeploymentDescriptor tdd,
UUID leaderId,
Time timeout)
Submit a
Task to the TaskExecutor. |
Future<Acknowledge> |
triggerCheckpoint(ExecutionAttemptID executionAttemptID,
long checkpointID,
long checkpointTimestamp,
CheckpointOptions checkpointOptions)
Trigger the checkpoint for the given task.
|
Future<Acknowledge> |
updatePartitions(ExecutionAttemptID executionAttemptID,
Iterable<PartitionInfo> partitionInfos,
Time timeout)
Update the task where the given partitions can be found.
|
getAddress, getHostnameFuture<Acknowledge> requestSlot(SlotID slotId, JobID jobId, AllocationID allocationId, String targetAddress, UUID resourceManagerLeaderId, Time timeout)
slotId - slot id for the requestallocationId - id for the requestresourceManagerLeaderId - current leader id of the ResourceManagerFuture<Acknowledge> submitTask(TaskDeploymentDescriptor tdd, UUID leaderId, Time timeout)
Task to the TaskExecutor.tdd - describing the task to submitleaderId - of the job leadertimeout - of the submit operationFuture<Acknowledge> updatePartitions(ExecutionAttemptID executionAttemptID, Iterable<PartitionInfo> partitionInfos, Time timeout)
executionAttemptID - identifying the taskpartitionInfos - telling where the partition can be retrieved fromtimeout - for the update partitions operationvoid failPartition(ExecutionAttemptID executionAttemptID)
executionAttemptID - identifying the taskFuture<Acknowledge> triggerCheckpoint(ExecutionAttemptID executionAttemptID, long checkpointID, long checkpointTimestamp, CheckpointOptions checkpointOptions)
executionAttemptID - identifying the taskcheckpointID - unique id for the checkpointcheckpointTimestamp - is the timestamp when the checkpoint has been initiatedcheckpointOptions - for performing the checkpointFuture<Acknowledge> confirmCheckpoint(ExecutionAttemptID executionAttemptID, long checkpointId, long checkpointTimestamp)
executionAttemptID - identifying the taskcheckpointId - unique id for the checkpointcheckpointTimestamp - is the timestamp when the checkpoint has been initiatedFuture<Acknowledge> stopTask(ExecutionAttemptID executionAttemptID, Time timeout)
executionAttemptID - identifying the tasktimeout - for the stop operationFuture<Acknowledge> cancelTask(ExecutionAttemptID executionAttemptID, Time timeout)
executionAttemptID - identifying the tasktimeout - for the cancel operationvoid heartbeatFromJobManager(ResourceID heartbeatOrigin)
heartbeatOrigin - unique id of the job managervoid heartbeatFromResourceManager(ResourceID heartbeatOrigin)
heartbeatOrigin - unique id of the resource managervoid disconnectJobManager(JobID jobId, Exception cause)
jobId - JobID for which the JobManager was the leadercause - for the disconnection from the JobManagervoid disconnectResourceManager(Exception cause)
cause - for the disconnection from the ResourceManagerCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.