Class StreamGraphOptimizer


  • public class StreamGraphOptimizer
    extends Object
    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 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

      • 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