Class ResubmissionDestination
java.lang.Object
co.yellowdog.platform.model.ResubmissionDestination
- All Implemented Interfaces:
Serializable
A destination to which
TaskStatus.FAILED tasks can be resubmitted.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionResubmissionDestination(String destinationTaskGroup, Selection<TaskErrorSelector> resubmitErrors) Creates a newResubmissionDestinationinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ResubmissionDestinationdestination(String destinationTaskGroup) Create aResubmissionDestinationthat will resubmit allTaskStatus.FAILEDTasks to the destinationTaskGroup.static ResubmissionDestinationdestination(String destinationTaskGroup, Selection<TaskErrorSelector> resubmitErrors) Create aResubmissionDestinationthat will resubmitTaskStatus.FAILEDTasks that match theSelectionto the destinationTaskGroup.Name of theTaskGroupto which any matchingTaskStatus.FAILEDtasks should be resubmitted.
-
Constructor Details
-
ResubmissionDestination
public ResubmissionDestination(String destinationTaskGroup, Selection<TaskErrorSelector> resubmitErrors) Creates a newResubmissionDestinationinstance.- Parameters:
destinationTaskGroup- Name of theTaskGroupto which any matchingTaskStatus.FAILEDtasks should be resubmitted.resubmitErrors- OptionalSelectionto determine whichTasks are eligible to be resubmitted to the to destinationTaskGroup. If noSelectionis specified, all errors will match. Make sure to only omitresubmitErrorsif this is the lastResubmissionDestinationin theFailurePolicy, otherwise and proceedingResubmissionDestinations will be unreachable.The
TaskErrorSelectorwill be applied to the last seen error.
-
-
Method Details
-
destination
Create aResubmissionDestinationthat will resubmit allTaskStatus.FAILEDTasks to the destinationTaskGroup.- Parameters:
destinationTaskGroup- Name of theTaskGroupto which to resubmit theTaskStatus.FAILEDTasks- Returns:
- The
ResubmissionDestination - See Also:
-
destination
public static ResubmissionDestination destination(String destinationTaskGroup, Selection<TaskErrorSelector> resubmitErrors) Create aResubmissionDestinationthat will resubmitTaskStatus.FAILEDTasks that match theSelectionto the destinationTaskGroup.- Parameters:
destinationTaskGroup- Name of theTaskGroupto which to resubmit theTaskStatus.FAILEDTasksresubmitErrors- OptionalSelectionto determine whichTasks are eligible to be resubmitted to the to destinationTaskGroup- Returns:
- The
ResubmissionDestination - See Also:
-
builder
-
getDestinationTaskGroup
Name of theTaskGroupto which any matchingTaskStatus.FAILEDtasks should be resubmitted. -
getResubmitErrors
OptionalSelectionto determine whichTasks are eligible to be resubmitted to the to destinationTaskGroup. If noSelectionis specified, all errors will match. Make sure to only omitresubmitErrorsif this is the lastResubmissionDestinationin theFailurePolicy, otherwise and proceedingResubmissionDestinations will be unreachable.The
TaskErrorSelectorwill be applied to the last seen error.
-