Class RunSpecificationValidator
java.lang.Object
co.yellowdog.platform.model.beanvalidation.CustomValidator<RunSpecification>
co.yellowdog.platform.model.validation.customvalidators.RunSpecificationValidator
Custom validator applied to task group run specifications.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@AssertFalse(message="must not have deprecated maximumTaskRetries and a retryPolicy") boolean@AssertFalse(message="must not have deprecated retryableErrors and a retryPolicy") boolean@AssertTrue(message="must not have minWorkers greater than maxWorkers") booleanMethods inherited from class CustomValidator
getTarget, onSetTarget
-
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()
-