public static CheckpointProperties forCheckpoint ( CheckpointRetentionPolicy policy ) { switch ( policy ) { case NEVER_RETAIN_AFTER_TERMINATION : return CHECKPOINT_NEVER_RETAINED ; case RETAIN_ON_FAILURE : return CHECKPOINT_RETAINED_ON_FAILURE ; case RETAIN_ON_CANCELLATION : return CHECKPOINT_RETAINED_ON_CANCELLATION ; default : throw new IllegalArgumentException ( "unknown policy: " + policy ) ; } }
Creates the checkpoint properties for a checkpoint .