Class TaskInput
java.lang.Object
co.yellowdog.platform.model.TaskInput
- All Implemented Interfaces:
Serializable
@ValidatedBy(TaskInputValidator.class)
public class TaskInput
extends Object
implements Serializable
Defines task inputs to be downloaded prior to worker execution of the task.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder that can be used to build a new TaskInput that is automatically validated on build. -
Constructor Summary
ConstructorsConstructorDescriptionTaskInput(TaskInputSource source, String namespace, String objectNamePattern, TaskInputVerification verification) -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskInput.Builderbuilder()protected booleanbooleanThe namespace containing matching objects; only if the source is set to TaskInputSource.OTHER_NAMESPACE.An ant-style pattern to select objects by name.The source context where the inputs can be found.Indicates if and how the Scheduler should verify the existence of a task input prior to starting the task.The task input verification status.inthashCode()voidsetNamespace(String namespace) The namespace containing matching objects; only if the source is set to TaskInputSource.OTHER_NAMESPACE.voidsetObjectNamePattern(String objectNamePattern) An ant-style pattern to select objects by name.voidsetSource(TaskInputSource source) The source context where the inputs can be found.voidsetVerification(TaskInputVerification verification) Indicates if and how the Scheduler should verify the existence of a task input prior to starting the task.voidsetVerificationStatus(TaskInputVerificationStatus verificationStatus) The task input verification status.toString()
-
Constructor Details
-
TaskInput
public TaskInput(TaskInputSource source, String namespace, String objectNamePattern, TaskInputVerification verification)
-
-
Method Details
-
builder
-
toBuilder
-
getSource
The source context where the inputs can be found.- Returns:
- the source context where the inputs can be found
-
getNamespace
The namespace containing matching objects; only if the source is set to TaskInputSource.OTHER_NAMESPACE.- Returns:
- the namespace containing matching objects
-
getObjectNamePattern
An ant-style pattern to select objects by name.- Returns:
- an ant-style pattern to select objects by name
-
getVerification
Indicates if and how the Scheduler should verify the existence of a task input prior to starting the task.- Returns:
- the verification approach to be used for this task input
-
getVerificationStatus
The task input verification status.- Returns:
- the task input verification status
-
setSource
The source context where the inputs can be found.- Parameters:
source- the source context where the inputs can be found
-
setNamespace
The namespace containing matching objects; only if the source is set to TaskInputSource.OTHER_NAMESPACE.- Parameters:
namespace- the namespace containing matching objects
-
setObjectNamePattern
An ant-style pattern to select objects by name.- Parameters:
objectNamePattern- an ant-style pattern to select objects by name
-
setVerification
Indicates if and how the Scheduler should verify the existence of a task input prior to starting the task.- Parameters:
verification- the verification approach to be used for this task input
-
setVerificationStatus
The task input verification status.- Parameters:
verificationStatus- This should not be set outside of the YellowDog Scheduler service.
-
equals
-
canEqual
-
hashCode
-
toString
-