Class TestingTaskInfo

    • Constructor Detail

      • TestingTaskInfo

        public TestingTaskInfo​(String taskName,
                               int maxNumberOfParallelSubtasks,
                               int indexOfThisSubtask,
                               int numberOfParallelSubtasks,
                               int attemptNumber,
                               String taskNameWithSubtasks,
                               String allocationIDAsString)
    • Method Detail

      • getTaskName

        public String getTaskName()
        Description copied from interface: TaskInfo
        Gets the task name.
        Specified by:
        getTaskName in interface TaskInfo
        Returns:
        The task name.
      • getMaxNumberOfParallelSubtasks

        public int getMaxNumberOfParallelSubtasks()
        Description copied from interface: TaskInfo
        Gets the max parallelism aka the max number of subtasks.
        Specified by:
        getMaxNumberOfParallelSubtasks in interface TaskInfo
        Returns:
        The max parallelism.
      • getIndexOfThisSubtask

        public int getIndexOfThisSubtask()
        Description copied from interface: TaskInfo
        Gets the number of this parallel subtask. The numbering starts from 0 and goes up to parallelism-1 (parallelism as returned by TaskInfo.getNumberOfParallelSubtasks()).
        Specified by:
        getIndexOfThisSubtask in interface TaskInfo
        Returns:
        The index of the parallel subtask.
      • getNumberOfParallelSubtasks

        public int getNumberOfParallelSubtasks()
        Description copied from interface: TaskInfo
        Gets the parallelism with which the parallel task runs.
        Specified by:
        getNumberOfParallelSubtasks in interface TaskInfo
        Returns:
        The parallelism with which the parallel task runs.
      • getAttemptNumber

        public int getAttemptNumber()
        Description copied from interface: TaskInfo
        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.
        Specified by:
        getAttemptNumber in interface TaskInfo
        Returns:
        The attempt number of the subtask.
      • getAllocationIDAsString

        public String getAllocationIDAsString()
        Description copied from interface: TaskInfo
        Returns the allocation id for where this task is executed.
        Specified by:
        getAllocationIDAsString in interface TaskInfo
        Returns:
        The allocation id for where this task is executed.