Interface ExecutionPlanSchedulingContext
-
- All Known Implementing Classes:
AdaptiveExecutionPlanSchedulingContext
,NonAdaptiveExecutionPlanSchedulingContext
public interface ExecutionPlanSchedulingContext
Interface for retrieving stream graph context details for adaptive batch jobs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getConsumersMaxParallelism(Function<JobVertexID,Integer> executionJobVertexMaxParallelismRetriever, IntermediateDataSet intermediateDataSet)
Retrieves the maximum parallelism of consumers connected to the specified intermediate data set.int
getConsumersParallelism(Function<JobVertexID,Integer> executionJobVertexParallelismRetriever, IntermediateDataSet intermediateDataSet)
Retrieves the parallelism of consumers connected to the specified intermediate data set.int
getPendingOperatorCount()
Retrieves the count of pending operators waiting to be transferred to job vertices.String
getStreamGraphJson()
Retrieves the JSON representation of the stream graph for the original job.
-
-
-
Method Detail
-
getConsumersParallelism
int getConsumersParallelism(Function<JobVertexID,Integer> executionJobVertexParallelismRetriever, IntermediateDataSet intermediateDataSet)
Retrieves the parallelism of consumers connected to the specified intermediate data set.- Parameters:
executionJobVertexParallelismRetriever
- A function that retrieves the parallelism of a job vertex.intermediateDataSet
- The intermediate data set whose consumer parallelism is queried.- Returns:
- The parallelism of the consumers.
-
getConsumersMaxParallelism
int getConsumersMaxParallelism(Function<JobVertexID,Integer> executionJobVertexMaxParallelismRetriever, IntermediateDataSet intermediateDataSet)
Retrieves the maximum parallelism of consumers connected to the specified intermediate data set.- Parameters:
executionJobVertexMaxParallelismRetriever
- A function that retrieves the maximum parallelism of a job vertex.intermediateDataSet
- The intermediate data set whose consumer maximum parallelism is queried.- Returns:
- The maximum parallelism of the consumers.
-
getPendingOperatorCount
int getPendingOperatorCount()
Retrieves the count of pending operators waiting to be transferred to job vertices.- Returns:
- the number of pending operators.
-
getStreamGraphJson
@Nullable String getStreamGraphJson()
Retrieves the JSON representation of the stream graph for the original job.- Returns:
- the JSON representation of the stream graph, or null if the stream graph is not available.
-
-