Class TaskErrorSelector
java.lang.Object
co.yellowdog.platform.model.TaskErrorSelector
- All Implemented Interfaces:
Serializable
@ValidatedBy(TaskErrorSelectorValidator.class)
public class TaskErrorSelector
extends Object
implements Serializable
Selector for
TaskError that 'ANDs' the containing Selections. At least one Selection must be
specified.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTaskErrorSelector(Selection<String> errorTypes, Selection<TaskStatus> statusesAtFailure, Selection<Integer> processExitCodes) Creates a newTaskErrorSelectorinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskErrorSelector.Builderbuilder()protected booleanbooleaninthashCode()voidsetErrorTypes(Selection<String> errorTypes) voidsetProcessExitCodes(Selection<Integer> processExitCodes) voidsetStatusesAtFailure(Selection<TaskStatus> statusesAtFailure) toString()
-
Constructor Details
-
TaskErrorSelector
public TaskErrorSelector(Selection<String> errorTypes, Selection<TaskStatus> statusesAtFailure, Selection<Integer> processExitCodes) Creates a newTaskErrorSelectorinstance.- Parameters:
errorTypes- @see TaskErrorTypestatusesAtFailure-processExitCodes- ASelectionof the process exit codes theTaskmust have errored for, can be null.Note that if there is a processExitCode, the error type must be
TaskErrorType.PROCESS_NON_ZERO_EXIT.
-
-
Method Details
-
builder
-
getErrorTypes
-
getStatusesAtFailure
- Returns:
- A
Selectionof theTaskStatuses that theTaskmust have been in at the point of error, can be null.
-
getProcessExitCodes
ASelectionof the process exit codes theTaskmust have errored for, can be null.Note that if there is a processExitCode, the error type must be
TaskErrorType.PROCESS_NON_ZERO_EXIT. -
setErrorTypes
-
setStatusesAtFailure
- Parameters:
A-Selectionof theTaskStatuses that theTaskmust have been in at the point of error, can be null.
-
setProcessExitCodes
ASelectionof the process exit codes theTaskmust have errored for, can be null.Note that if there is a processExitCode, the error type must be
TaskErrorType.PROCESS_NON_ZERO_EXIT. -
equals
-
canEqual
-
hashCode
-
toString
-