本文整理了Java中org.apache.flink.runtime.execution.Environment.declineCheckpoint()
方法的一些代码示例,展示了Environment.declineCheckpoint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.declineCheckpoint()
方法的具体详情如下:
包路径:org.apache.flink.runtime.execution.Environment
类名称:Environment
方法名:declineCheckpoint
[英]Declines a checkpoint. This tells the checkpoint coordinator that this task will not be able to successfully complete a certain checkpoint.
[中]拒绝检查点。这会告诉检查点协调员此任务将无法成功完成某个检查点。
代码示例来源:origin: apache/flink
@Override
public void tryHandleCheckpointException(
CheckpointMetaData checkpointMetaData,
Exception exception) throws Exception {
environment.declineCheckpoint(checkpointMetaData.getCheckpointId(), exception);
}
}
代码示例来源:origin: apache/flink
@Override
public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
// notify the coordinator that we decline this checkpoint
getEnvironment().declineCheckpoint(checkpointId, cause);
// notify all downstream operators that they should not wait for a barrier from us
synchronized (lock) {
operatorChain.broadcastCheckpointCancelMarker(checkpointId);
}
}
代码示例来源:origin: org.apache.flink/flink-streaming-java_2.11
@Override
public void tryHandleCheckpointException(
CheckpointMetaData checkpointMetaData,
Exception exception) throws Exception {
environment.declineCheckpoint(checkpointMetaData.getCheckpointId(), exception);
}
}
代码示例来源:origin: org.apache.flink/flink-streaming-java
@Override
public void tryHandleCheckpointException(
CheckpointMetaData checkpointMetaData,
Exception exception) throws Exception {
environment.declineCheckpoint(checkpointMetaData.getCheckpointId(), exception);
}
}
代码示例来源:origin: org.apache.flink/flink-streaming-java_2.10
@Override
public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
// notify the coordinator that we decline this checkpoint
getEnvironment().declineCheckpoint(checkpointId, cause);
// notify all downstream operators that they should not wait for a barrier from us
synchronized (lock) {
operatorChain.broadcastCheckpointCancelMarker(checkpointId);
}
}
代码示例来源:origin: org.apache.flink/flink-streaming-java_2.11
@Override
public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
// notify the coordinator that we decline this checkpoint
getEnvironment().declineCheckpoint(checkpointId, cause);
// notify all downstream operators that they should not wait for a barrier from us
synchronized (lock) {
operatorChain.broadcastCheckpointCancelMarker(checkpointId);
}
}
代码示例来源:origin: org.apache.flink/flink-streaming-java
@Override
public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
// notify the coordinator that we decline this checkpoint
getEnvironment().declineCheckpoint(checkpointId, cause);
// notify all downstream operators that they should not wait for a barrier from us
synchronized (lock) {
operatorChain.broadcastCheckpointCancelMarker(checkpointId);
}
}
内容来源于网络,如有侵权,请联系作者删除!