Package org.apache.flink.streaming.util
Class FiniteTestSource<T>
- java.lang.Object
-
- org.apache.flink.streaming.util.FiniteTestSource<T>
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.state.CheckpointListener,org.apache.flink.streaming.api.functions.source.SourceFunction<T>
@Deprecated public class FiniteTestSource<T> extends Object implements org.apache.flink.streaming.api.functions.source.SourceFunction<T>, org.apache.flink.api.common.state.CheckpointListener
Deprecated.This class is based on theSourceFunctionAPI, which is due to be removed. Use the newSourceAPI instead.A stream source that: 1) emits a list of elements without allowing checkpoints, 2) then waits for two more checkpoints to complete, 3) then re-emits the same elements before 4) waiting for another two checkpoints and 5) exiting.This class was written to test the Bulk Writers used by the StreamingFileSink.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.source.SourceFunction
org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description FiniteTestSource(Iterable<T> elements)Deprecated.FiniteTestSource(java.util.function.BooleanSupplier couldExit, long waitTimeOut, Iterable<T> elements)Deprecated.FiniteTestSource(java.util.function.BooleanSupplier couldExit, Iterable<T> elements)Deprecated.FiniteTestSource(T... elements)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcancel()Deprecated.voidnotifyCheckpointAborted(long checkpointId)Deprecated.voidnotifyCheckpointComplete(long checkpointId)Deprecated.voidrun(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T> ctx)Deprecated.
-
-
-
Constructor Detail
-
FiniteTestSource
@SafeVarargs public FiniteTestSource(T... elements)
Deprecated.
-
FiniteTestSource
public FiniteTestSource(@Nullable java.util.function.BooleanSupplier couldExit, long waitTimeOut, Iterable<T> elements)
Deprecated.
-
-
Method Detail
-
run
public void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T> ctx) throws Exception
Deprecated.
-
cancel
public void cancel()
Deprecated.- Specified by:
cancelin interfaceorg.apache.flink.streaming.api.functions.source.SourceFunction<T>
-
notifyCheckpointComplete
public void notifyCheckpointComplete(long checkpointId) throws ExceptionDeprecated.- Specified by:
notifyCheckpointCompletein interfaceorg.apache.flink.api.common.state.CheckpointListener- Throws:
Exception
-
notifyCheckpointAborted
public void notifyCheckpointAborted(long checkpointId)
Deprecated.- Specified by:
notifyCheckpointAbortedin interfaceorg.apache.flink.api.common.state.CheckpointListener
-
-