Class SimpleInitializeOnMasterContext
- java.lang.Object
-
- org.apache.flink.runtime.executiongraph.SimpleInitializeOnMasterContext
-
- All Implemented Interfaces:
JobVertex.InitializeOnMasterContext
@Internal public final class SimpleInitializeOnMasterContext extends Object implements JobVertex.InitializeOnMasterContext
A simple pojo based implementation ofJobVertex.InitializeOnMasterContext
.
-
-
Constructor Summary
Constructors Constructor Description SimpleInitializeOnMasterContext(ClassLoader loader, int executionParallelism)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
The class loader for user defined code.int
getExecutionParallelism()
The actual parallelism this vertex will be run with.
-
-
-
Constructor Detail
-
SimpleInitializeOnMasterContext
public SimpleInitializeOnMasterContext(ClassLoader loader, int executionParallelism)
-
-
Method Detail
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:JobVertex.InitializeOnMasterContext
The class loader for user defined code.- Specified by:
getClassLoader
in interfaceJobVertex.InitializeOnMasterContext
-
getExecutionParallelism
public int getExecutionParallelism()
Description copied from interface:JobVertex.InitializeOnMasterContext
The actual parallelism this vertex will be run with. In contrast, theJobVertex.getParallelism()
is the original parallelism set when creating theJobGraph
and might be updated e.g. by theAdaptiveScheduler
.- Specified by:
getExecutionParallelism
in interfaceJobVertex.InitializeOnMasterContext
-
-