Class TestingTaskInfo
java.lang.Object
org.apache.flink.connector.testutils.source.TestingTaskInfo
- All Implemented Interfaces:
org.apache.flink.api.common.TaskInfo
Test implementation for
TaskInfo.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTestingTaskInfo(String taskName, int maxNumberOfParallelSubtasks, int indexOfThisSubtask, int numberOfParallelSubtasks, int attemptNumber, String taskNameWithSubtasks, String allocationIDAsString) -
Method Summary
Modifier and TypeMethodDescriptionintintintint
-
Constructor Details
-
TestingTaskInfo
-
-
Method Details
-
getTaskName
- Specified by:
getTaskNamein interfaceorg.apache.flink.api.common.TaskInfo
-
getMaxNumberOfParallelSubtasks
public int getMaxNumberOfParallelSubtasks()- Specified by:
getMaxNumberOfParallelSubtasksin interfaceorg.apache.flink.api.common.TaskInfo
-
getIndexOfThisSubtask
public int getIndexOfThisSubtask()- Specified by:
getIndexOfThisSubtaskin interfaceorg.apache.flink.api.common.TaskInfo
-
getNumberOfParallelSubtasks
public int getNumberOfParallelSubtasks()- Specified by:
getNumberOfParallelSubtasksin interfaceorg.apache.flink.api.common.TaskInfo
-
getAttemptNumber
public int getAttemptNumber()- Specified by:
getAttemptNumberin interfaceorg.apache.flink.api.common.TaskInfo
-
getTaskNameWithSubtasks
- Specified by:
getTaskNameWithSubtasksin interfaceorg.apache.flink.api.common.TaskInfo
-
getAllocationIDAsString
- Specified by:
getAllocationIDAsStringin interfaceorg.apache.flink.api.common.TaskInfo
-