Class StreamGraphOptimizer
java.lang.Object
org.apache.flink.runtime.scheduler.adaptivebatch.StreamGraphOptimizer
The
StreamGraphOptimizer class is responsible for optimizing a StreamGraph based on
runtime information.
Upon initialization, it obtains a StreamGraphContext from the
AdaptiveGraphManager and loads the specified optimization strategies. At runtime, it applies
these strategies sequentially to the StreamGraph using the provided context and information about
finished operators.
-
Constructor Summary
ConstructorsConstructorDescriptionStreamGraphOptimizer(org.apache.flink.configuration.Configuration jobConfiguration, ClassLoader userClassLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializeStrategies(StreamGraphContext context) voidonOperatorsFinished(OperatorsFinished operatorsFinished, StreamGraphContext context) Applies all loaded optimization strategies to the StreamGraph.
-
Constructor Details
-
StreamGraphOptimizer
public StreamGraphOptimizer(org.apache.flink.configuration.Configuration jobConfiguration, ClassLoader userClassLoader) throws org.apache.flink.util.DynamicCodeLoadingException - Throws:
org.apache.flink.util.DynamicCodeLoadingException
-
-
Method Details
-
initializeStrategies
-
onOperatorsFinished
public void onOperatorsFinished(OperatorsFinished operatorsFinished, StreamGraphContext context) throws Exception Applies all loaded optimization strategies to the StreamGraph.- Parameters:
operatorsFinished- the object containing information about finished operators.context- the StreamGraphContext providing methods to modify the StreamGraph.- Throws:
Exception
-