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@AssertTrue(message="must set exclusiveWorkers to true when batchAllocation is true") 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() -
isExclusiveWorkersWhenBatchAllocation
@AssertTrue(message="must set exclusiveWorkers to true when batchAllocation is true") public @AssertTrue(message="must set exclusiveWorkers to true when batchAllocation is true") boolean isExclusiveWorkersWhenBatchAllocation()
-