Interface TaskInfo
-
@Experimental public interface TaskInfoTaskInfocontains all the meta information of the task.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAttemptNumber()Gets the attempt number of this parallel subtask.intgetIndexOfThisSubtask()Gets the number of this parallel subtask.intgetMaxParallelism()Get the max parallelism of current task.intgetParallelism()Get the parallelism of current task.StringgetTaskName()Get the name of current task.
-
-
-
Method Detail
-
getParallelism
int getParallelism()
Get the parallelism of current task.- Returns:
- the parallelism of this process function.
-
getMaxParallelism
int getMaxParallelism()
Get the max parallelism of current task.- Returns:
- The max parallelism.
-
getTaskName
String getTaskName()
Get the name of current task.- Returns:
- The name of current task.
-
getIndexOfThisSubtask
int getIndexOfThisSubtask()
Gets the number of this parallel subtask. The numbering starts from 0 and goes up to parallelism-1 (parallelism as returned bygetParallelism()).- Returns:
- The index of the parallel subtask.
-
getAttemptNumber
int getAttemptNumber()
Gets the attempt number of this parallel subtask. First attempt is numbered 0. The attempt number corresponds to the number of times this task has been restarted(after failure/cancellation) since the job was initially started.- Returns:
- The attempt number of the subtask.
-
-