Class TestingTaskInfo

java.lang.Object
org.apache.flink.connector.testutils.source.TestingTaskInfo
All Implemented Interfaces:
org.apache.flink.api.common.TaskInfo

public class TestingTaskInfo extends Object implements org.apache.flink.api.common.TaskInfo
Test implementation for TaskInfo.
  • Constructor Details

    • TestingTaskInfo

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

    • getTaskName

      public String getTaskName()
      Specified by:
      getTaskName in interface org.apache.flink.api.common.TaskInfo
    • getMaxNumberOfParallelSubtasks

      public int getMaxNumberOfParallelSubtasks()
      Specified by:
      getMaxNumberOfParallelSubtasks in interface org.apache.flink.api.common.TaskInfo
    • getIndexOfThisSubtask

      public int getIndexOfThisSubtask()
      Specified by:
      getIndexOfThisSubtask in interface org.apache.flink.api.common.TaskInfo
    • getNumberOfParallelSubtasks

      public int getNumberOfParallelSubtasks()
      Specified by:
      getNumberOfParallelSubtasks in interface org.apache.flink.api.common.TaskInfo
    • getAttemptNumber

      public int getAttemptNumber()
      Specified by:
      getAttemptNumber in interface org.apache.flink.api.common.TaskInfo
    • getTaskNameWithSubtasks

      public String getTaskNameWithSubtasks()
      Specified by:
      getTaskNameWithSubtasks in interface org.apache.flink.api.common.TaskInfo
    • getAllocationIDAsString

      public String getAllocationIDAsString()
      Specified by:
      getAllocationIDAsString in interface org.apache.flink.api.common.TaskInfo