Class JobVertexForwardGroup

java.lang.Object
org.apache.flink.runtime.jobgraph.forwardgroup.JobVertexForwardGroup
All Implemented Interfaces:
ForwardGroup<JobVertexID>

public class JobVertexForwardGroup extends Object implements ForwardGroup<JobVertexID>
Job vertex level implement for ForwardGroup.
  • Constructor Details

    • JobVertexForwardGroup

      public JobVertexForwardGroup(Set<JobVertex> jobVertices)
  • Method Details

    • setParallelism

      public void setParallelism(int parallelism)
      Description copied from interface: ForwardGroup
      Sets the parallelism for this forward group.
      Specified by:
      setParallelism in interface ForwardGroup<JobVertexID>
      Parameters:
      parallelism - the parallelism to set.
    • isParallelismDecided

      public boolean isParallelismDecided()
      Description copied from interface: ForwardGroup
      Returns if parallelism has been decided for this forward group.
      Specified by:
      isParallelismDecided in interface ForwardGroup<JobVertexID>
      Returns:
      is parallelism decided for this forward group.
    • getParallelism

      public int getParallelism()
      Description copied from interface: ForwardGroup
      Returns the parallelism for this forward group.
      Specified by:
      getParallelism in interface ForwardGroup<JobVertexID>
      Returns:
      parallelism for this forward group.
    • setMaxParallelism

      public void setMaxParallelism(int maxParallelism)
      Description copied from interface: ForwardGroup
      Sets the max parallelism for this forward group.
      Specified by:
      setMaxParallelism in interface ForwardGroup<JobVertexID>
      Parameters:
      maxParallelism - the max parallelism to set.
    • isMaxParallelismDecided

      public boolean isMaxParallelismDecided()
      Description copied from interface: ForwardGroup
      Returns if max parallelism has been decided for this forward group.
      Specified by:
      isMaxParallelismDecided in interface ForwardGroup<JobVertexID>
      Returns:
      is max parallelism decided for this forward group.
    • getMaxParallelism

      public int getMaxParallelism()
      Description copied from interface: ForwardGroup
      Returns the max parallelism for this forward group.
      Specified by:
      getMaxParallelism in interface ForwardGroup<JobVertexID>
      Returns:
      max parallelism for this forward group.
    • getVertexIds

      public Set<JobVertexID> getVertexIds()
      Description copied from interface: ForwardGroup
      Returns the vertex ids in this forward group.
      Specified by:
      getVertexIds in interface ForwardGroup<JobVertexID>
      Returns:
      vertex ids in this forward group.
    • size

      @VisibleForTesting public int size()