@Internal public class AlignedController extends Object implements CheckpointBarrierBehaviourController
| Constructor and Description |
|---|
AlignedController(org.apache.flink.runtime.io.network.partition.consumer.CheckpointableInput... inputs) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortPendingCheckpoint(long cancelledId,
org.apache.flink.runtime.checkpoint.CheckpointException exception) |
void |
barrierReceived(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
org.apache.flink.runtime.io.network.api.CheckpointBarrier barrier)
Invoked per every received
CheckpointBarrier. |
void |
obsoleteBarrierReceived(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
org.apache.flink.runtime.io.network.api.CheckpointBarrier barrier) |
boolean |
postProcessLastBarrier(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
org.apache.flink.runtime.io.network.api.CheckpointBarrier barrier)
Invoked once per checkpoint, after the last invocation of
CheckpointBarrierBehaviourController.barrierReceived(InputChannelInfo, CheckpointBarrier) for that given checkpoint. |
boolean |
preProcessFirstBarrier(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
org.apache.flink.runtime.io.network.api.CheckpointBarrier barrier)
Invoked once per checkpoint, before the first invocation of
CheckpointBarrierBehaviourController.barrierReceived(InputChannelInfo, CheckpointBarrier) for that given checkpoint. |
public AlignedController(org.apache.flink.runtime.io.network.partition.consumer.CheckpointableInput... inputs)
public void barrierReceived(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
org.apache.flink.runtime.io.network.api.CheckpointBarrier barrier)
CheckpointBarrierBehaviourControllerCheckpointBarrier.barrierReceived in interface CheckpointBarrierBehaviourControllerpublic boolean preProcessFirstBarrier(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
org.apache.flink.runtime.io.network.api.CheckpointBarrier barrier)
CheckpointBarrierBehaviourControllerCheckpointBarrierBehaviourController.barrierReceived(InputChannelInfo, CheckpointBarrier) for that given checkpoint.preProcessFirstBarrier in interface CheckpointBarrierBehaviourControllertrue if checkpoint should be triggered.public boolean postProcessLastBarrier(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
org.apache.flink.runtime.io.network.api.CheckpointBarrier barrier)
throws IOException
CheckpointBarrierBehaviourControllerCheckpointBarrierBehaviourController.barrierReceived(InputChannelInfo, CheckpointBarrier) for that given checkpoint.postProcessLastBarrier in interface CheckpointBarrierBehaviourControllertrue if checkpoint should be triggered.IOExceptionpublic void abortPendingCheckpoint(long cancelledId,
org.apache.flink.runtime.checkpoint.CheckpointException exception)
throws IOException
abortPendingCheckpoint in interface CheckpointBarrierBehaviourControllerIOExceptionpublic void obsoleteBarrierReceived(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo,
org.apache.flink.runtime.io.network.api.CheckpointBarrier barrier)
throws IOException
obsoleteBarrierReceived in interface CheckpointBarrierBehaviourControllerIOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.