Class SourceCoordinatorProvider<SplitT extends org.apache.flink.api.connector.source.SourceSplit>
- java.lang.Object
-
- org.apache.flink.runtime.operators.coordination.RecreateOnResetOperatorCoordinator.Provider
-
- org.apache.flink.runtime.source.coordinator.SourceCoordinatorProvider<SplitT>
-
- All Implemented Interfaces:
Serializable,OperatorCoordinator.Provider
public class SourceCoordinatorProvider<SplitT extends org.apache.flink.api.connector.source.SourceSplit> extends RecreateOnResetOperatorCoordinator.Provider
The provider ofSourceCoordinator.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSourceCoordinatorProvider.CoordinatorExecutorThreadFactoryA thread factory class that provides some helper methods.
-
Constructor Summary
Constructors Constructor Description SourceCoordinatorProvider(String operatorName, OperatorID operatorID, org.apache.flink.api.connector.source.Source<?,SplitT,?> source, int numWorkerThreads, org.apache.flink.api.common.eventtime.WatermarkAlignmentParams alignmentParams, String coordinatorListeningID)Construct theSourceCoordinatorProvider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorCoordinatorgetCoordinator(OperatorCoordinator.Context context)-
Methods inherited from class org.apache.flink.runtime.operators.coordination.RecreateOnResetOperatorCoordinator.Provider
create, create, getOperatorId
-
-
-
-
Constructor Detail
-
SourceCoordinatorProvider
public SourceCoordinatorProvider(String operatorName, OperatorID operatorID, org.apache.flink.api.connector.source.Source<?,SplitT,?> source, int numWorkerThreads, org.apache.flink.api.common.eventtime.WatermarkAlignmentParams alignmentParams, @Nullable String coordinatorListeningID)
Construct theSourceCoordinatorProvider.- Parameters:
operatorName- the name of the operator.operatorID- the ID of the operator this coordinator corresponds to.source- the Source that will be used for this coordinator.numWorkerThreads- the number of threads the should provide to the SplitEnumerator for doing async calls. SeeSplitEnumeratorContext.callAsync().
-
-
Method Detail
-
getCoordinator
public OperatorCoordinator getCoordinator(OperatorCoordinator.Context context)
- Specified by:
getCoordinatorin classRecreateOnResetOperatorCoordinator.Provider
-
-