Class StreamGraphOptimizer
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.adaptivebatch.StreamGraphOptimizer
-
public class StreamGraphOptimizer extends Object
TheStreamGraphOptimizer
class is responsible for optimizing a StreamGraph based on runtime information.Upon initialization, it obtains a
StreamGraphContext
from theAdaptiveGraphManager
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
Constructors Constructor Description StreamGraphOptimizer(org.apache.flink.configuration.Configuration jobConfiguration, ClassLoader userClassLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initializeStrategies(StreamGraphContext context)
void
onOperatorsFinished(OperatorsFinished operatorsFinished, StreamGraphContext context)
Applies all loaded optimization strategies to the StreamGraph.
-
-
-
Constructor Detail
-
StreamGraphOptimizer
public StreamGraphOptimizer(org.apache.flink.configuration.Configuration jobConfiguration, ClassLoader userClassLoader) throws org.apache.flink.util.DynamicCodeLoadingException
- Throws:
org.apache.flink.util.DynamicCodeLoadingException
-
-
Method Detail
-
initializeStrategies
public void initializeStrategies(StreamGraphContext context)
-
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
-
-