Class RunSpecificationValidator

java.lang.Object
co.yellowdog.platform.model.beanvalidation.CustomValidator<RunSpecification>
co.yellowdog.platform.model.validation.customvalidators.RunSpecificationValidator

public class RunSpecificationValidator extends CustomValidator<RunSpecification>
Custom validator applied to task group run specifications.
  • Constructor Details

    • RunSpecificationValidator

      public RunSpecificationValidator()
  • Method Details

    • isMinWorkersNotGreaterThanMaxWorkers

      @AssertTrue(message="must not have minWorkers greater than maxWorkers") public @AssertTrue(message="must not have minWorkers greater than maxWorkers") boolean isMinWorkersNotGreaterThanMaxWorkers()
    • hasRetryableErrorsAndRetryPolicy

      @AssertFalse(message="must not have deprecated retryableErrors and a retryPolicy") public @AssertFalse(message="must not have deprecated retryableErrors and a retryPolicy") boolean hasRetryableErrorsAndRetryPolicy()
    • hasMaximumTaskRetriesAndRetryPolicy

      @AssertFalse(message="must not have deprecated maximumTaskRetries and a retryPolicy") public @AssertFalse(message="must not have deprecated maximumTaskRetries and a retryPolicy") boolean hasMaximumTaskRetriesAndRetryPolicy()