org.apache.flink.runtime.execution.Environment.declineCheckpoint()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中org.apache.flink.runtime.execution.Environment.declineCheckpoint()方法的一些代码示例,展示了Environment.declineCheckpoint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.declineCheckpoint()方法的具体详情如下:
包路径:org.apache.flink.runtime.execution.Environment
类名称:Environment
方法名:declineCheckpoint

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

  1. @Override
  2. public void tryHandleCheckpointException(
  3. CheckpointMetaData checkpointMetaData,
  4. Exception exception) throws Exception {
  5. environment.declineCheckpoint(checkpointMetaData.getCheckpointId(), exception);
  6. }
  7. }

代码示例来源:origin: apache/flink

  1. @Override
  2. public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
  3. LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
  4. // notify the coordinator that we decline this checkpoint
  5. getEnvironment().declineCheckpoint(checkpointId, cause);
  6. // notify all downstream operators that they should not wait for a barrier from us
  7. synchronized (lock) {
  8. operatorChain.broadcastCheckpointCancelMarker(checkpointId);
  9. }
  10. }

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.11

  1. @Override
  2. public void tryHandleCheckpointException(
  3. CheckpointMetaData checkpointMetaData,
  4. Exception exception) throws Exception {
  5. environment.declineCheckpoint(checkpointMetaData.getCheckpointId(), exception);
  6. }
  7. }

代码示例来源:origin: org.apache.flink/flink-streaming-java

  1. @Override
  2. public void tryHandleCheckpointException(
  3. CheckpointMetaData checkpointMetaData,
  4. Exception exception) throws Exception {
  5. environment.declineCheckpoint(checkpointMetaData.getCheckpointId(), exception);
  6. }
  7. }

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.10

  1. @Override
  2. public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
  3. LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
  4. // notify the coordinator that we decline this checkpoint
  5. getEnvironment().declineCheckpoint(checkpointId, cause);
  6. // notify all downstream operators that they should not wait for a barrier from us
  7. synchronized (lock) {
  8. operatorChain.broadcastCheckpointCancelMarker(checkpointId);
  9. }
  10. }

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.11

  1. @Override
  2. public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
  3. LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
  4. // notify the coordinator that we decline this checkpoint
  5. getEnvironment().declineCheckpoint(checkpointId, cause);
  6. // notify all downstream operators that they should not wait for a barrier from us
  7. synchronized (lock) {
  8. operatorChain.broadcastCheckpointCancelMarker(checkpointId);
  9. }
  10. }

代码示例来源:origin: org.apache.flink/flink-streaming-java

  1. @Override
  2. public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
  3. LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
  4. // notify the coordinator that we decline this checkpoint
  5. getEnvironment().declineCheckpoint(checkpointId, cause);
  6. // notify all downstream operators that they should not wait for a barrier from us
  7. synchronized (lock) {
  8. operatorChain.broadcastCheckpointCancelMarker(checkpointId);
  9. }
  10. }

相关文章