Constructor and Description |
---|
TaskInfo(String taskName,
int maxNumberOfParallelSubtasks,
int indexOfSubtask,
int numberOfParallelSubtasks,
int attemptNumber) |
TaskInfo(String taskName,
int maxNumberOfParallelSubtasks,
int indexOfSubtask,
int numberOfParallelSubtasks,
int attemptNumber,
String allocationIDAsString) |
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()
Returns the name of the task
|
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() . |
public TaskInfo(String taskName, int maxNumberOfParallelSubtasks, int indexOfSubtask, int numberOfParallelSubtasks, int attemptNumber)
public String getTaskName()
public int getMaxNumberOfParallelSubtasks()
public int getIndexOfThisSubtask()
getNumberOfParallelSubtasks()
).public int getNumberOfParallelSubtasks()
public int getAttemptNumber()
public String getTaskNameWithSubtasks()
getIndexOfThisSubtask()
+ 1), and 6 would be getNumberOfParallelSubtasks()
, and 1 would be getAttemptNumber()
.public String getAllocationIDAsString()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.