@PublicEvolving public interface TaskInfo
TaskInfo
represents the meta information of current task.Modifier and Type | Method and Description |
---|---|
String |
getAllocationIDAsString()
Returns the allocation id for where this task is executed.
|
int |
getAttemptNumber()
Gets the attempt number of this parallel subtask.
|
int |
getIndexOfThisSubtask()
Gets the number of this parallel subtask.
|
int |
getMaxNumberOfParallelSubtasks()
Gets the max parallelism aka the max number of subtasks.
|
int |
getNumberOfParallelSubtasks()
Gets the parallelism with which the parallel task runs.
|
String |
getTaskName()
Gets the task name.
|
String |
getTaskNameWithSubtasks()
Returns the name of the task, appended with the subtask indicator, such as "MyTask (3/6)#1",
where 3 would be (
getIndexOfThisSubtask() + 1), and 6 would be getNumberOfParallelSubtasks() , and 1 would be getAttemptNumber() . |
String getTaskName()
int getMaxNumberOfParallelSubtasks()
int getIndexOfThisSubtask()
getNumberOfParallelSubtasks()
).int getNumberOfParallelSubtasks()
int getAttemptNumber()
String getTaskNameWithSubtasks()
getIndexOfThisSubtask()
+ 1), and 6 would be getNumberOfParallelSubtasks()
, and 1 would be getAttemptNumber()
.String getAllocationIDAsString()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.