Class DefaultVertexParallelismInfo

java.lang.Object
org.apache.flink.runtime.scheduler.DefaultVertexParallelismInfo
All Implemented Interfaces:
VertexParallelismInformation

public class DefaultVertexParallelismInfo extends Object implements VertexParallelismInformation
A VertexParallelismInformation implementation that provides common validation.
  • Field Details

    • PARALLELISM_AUTO_MAX

      public static final int PARALLELISM_AUTO_MAX
      The constant to use for the parallelism, if the system should use the number of currently available slots.
      See Also:
  • Constructor Details

    • DefaultVertexParallelismInfo

      public DefaultVertexParallelismInfo(int parallelism, int maxParallelism, Function<Integer,Optional<String>> rescaleMaxValidator)
      Create VertexParallelismInformation with max parallelism rescaling validation for a vertex.
      Parameters:
      parallelism - the vertex's parallelism
      maxParallelism - the vertex's max parallelism
      rescaleMaxValidator - the validation function to provide an error message if a max parallelism rescale is not allowed
    • DefaultVertexParallelismInfo

      public DefaultVertexParallelismInfo(int minParallelism, int parallelism, int maxParallelism, Function<Integer,Optional<String>> rescaleMaxValidator)
  • Method Details