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 forForwardGroup.
-
-
Constructor Summary
Constructors Constructor Description JobVertexForwardGroup(Set<JobVertex> jobVertices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxParallelism()Returns the max parallelism for this forward group.intgetParallelism()Returns the parallelism for this forward group.Set<JobVertexID>getVertexIds()Returns the vertex ids in this forward group.booleanisMaxParallelismDecided()Returns if max parallelism has been decided for this forward group.booleanisParallelismDecided()Returns if parallelism has been decided for this forward group.voidsetMaxParallelism(int maxParallelism)Sets the max parallelism for this forward group.voidsetParallelism(int parallelism)Sets the parallelism for this forward group.intsize()
-
-
-
Method Detail
-
setParallelism
public void setParallelism(int parallelism)
Description copied from interface:ForwardGroupSets the parallelism for this forward group.- Specified by:
setParallelismin interfaceForwardGroup<JobVertexID>- Parameters:
parallelism- the parallelism to set.
-
isParallelismDecided
public boolean isParallelismDecided()
Description copied from interface:ForwardGroupReturns if parallelism has been decided for this forward group.- Specified by:
isParallelismDecidedin interfaceForwardGroup<JobVertexID>- Returns:
- is parallelism decided for this forward group.
-
getParallelism
public int getParallelism()
Description copied from interface:ForwardGroupReturns the parallelism for this forward group.- Specified by:
getParallelismin interfaceForwardGroup<JobVertexID>- Returns:
- parallelism for this forward group.
-
setMaxParallelism
public void setMaxParallelism(int maxParallelism)
Description copied from interface:ForwardGroupSets the max parallelism for this forward group.- Specified by:
setMaxParallelismin interfaceForwardGroup<JobVertexID>- Parameters:
maxParallelism- the max parallelism to set.
-
isMaxParallelismDecided
public boolean isMaxParallelismDecided()
Description copied from interface:ForwardGroupReturns if max parallelism has been decided for this forward group.- Specified by:
isMaxParallelismDecidedin interfaceForwardGroup<JobVertexID>- Returns:
- is max parallelism decided for this forward group.
-
getMaxParallelism
public int getMaxParallelism()
Description copied from interface:ForwardGroupReturns the max parallelism for this forward group.- Specified by:
getMaxParallelismin interfaceForwardGroup<JobVertexID>- Returns:
- max parallelism for this forward group.
-
getVertexIds
public Set<JobVertexID> getVertexIds()
Description copied from interface:ForwardGroupReturns the vertex ids in this forward group.- Specified by:
getVertexIdsin interfaceForwardGroup<JobVertexID>- Returns:
- vertex ids in this forward group.
-
size
@VisibleForTesting public int size()
-
-