@Override public boolean permitsExecutionOf(ExecutionStage stage, ExecutionState state, OptimizationContext optimizationContext) { return this.conjuncts.isEmpty() || this.conjuncts.stream().anyMatch(conjunct -> conjunct.permitsExecutionOf(stage, state, optimizationContext)); }
/** * If the {@link #breakpoint} requests not to execute the given {@link ExecutionStage}, put it to * {@link #suspendedStages}. * * @param stageActivator that might be suspended * @return whether the {@link ExecutionStage} was suspended */ private boolean suspendIfBreakpointRequest(StageActivator stageActivator) { if (!this.breakpoint.permitsExecutionOf(stageActivator.getStage(), this, this.job.getOptimizationContext())) { this.suspendedStages.add(stageActivator); return true; } return false; }