Interface TaskWorkerClient
public interface TaskWorkerClient
Consumer interface used to find new tasks assigned to a
WorkerNode for execution.-
Method Summary
Modifier and TypeMethodDescriptiongetAssignedTasks(TaskListRequest taskListRequest) List all tasks assigned to a WorkerNode.voidsendTaskHeartbeat(TaskId taskId, long timestamp) Sends task heart beat to Task Store/Queue
-
Method Details
-
getAssignedTasks
List all tasks assigned to a WorkerNode. Useful when the implementation uses a separate store for Task assignments to Worker nodes- Parameters:
taskListRequest- TaskListRequest- Returns:
- list of all tasks assigned to a WorkerNode
-
sendTaskHeartbeat
Sends task heart beat to Task Store/Queue- Parameters:
taskId- TaskId of Task to send heartbeat fortimestamp- timestamp of heartbeat to be recorded in TaskStore/Queue
-