Class TaskOutput
java.lang.Object
co.yellowdog.platform.model.TaskOutput
- All Implemented Interfaces:
Serializable
@ValidatedBy(TaskOutputValidator.class)
public class TaskOutput
extends Object
implements Serializable
Defines task outputs to be uploaded following worker execution of the
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder that can be used to build a new TaskOutput that is automatically validated on build. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskOutput.Builder
builder()
protected boolean
boolean
The pre-configured directory name; only if the source is set to TaskOutputSource.OTHER_DIRECTORY.An ant-style pattern to select output files by path.The source context where the outputs can be found.int
hashCode()
boolean
Indicates that the outputs should still be uploaded even if the task execution failed or was aborted.boolean
Indicates that at least one output should be found otherwise the task execution is failed.void
setAlwaysUpload
(boolean alwaysUpload) Indicates that the outputs should still be uploaded even if the task execution failed or was aborted.void
setDirectoryName
(String directoryName) The pre-configured directory name; only if the source is set to TaskOutputSource.OTHER_DIRECTORY.void
setFilePattern
(String filePattern) An ant-style pattern to select output files by path.void
setRequired
(boolean required) Indicates that at least one output should be found otherwise the task execution is failed.void
setSource
(TaskOutputSource source) The source context where the outputs can be found.toString()
-
Method Details
-
builder
-
toBuilder
-
getSource
The source context where the outputs can be found.- Returns:
- the source context where the outputs can be found
-
getDirectoryName
The pre-configured directory name; only if the source is set to TaskOutputSource.OTHER_DIRECTORY.- Returns:
- the pre-configured directory name
-
getFilePattern
An ant-style pattern to select output files by path.- Returns:
- an ant-style pattern to select output files by path
-
isAlwaysUpload
public boolean isAlwaysUpload()Indicates that the outputs should still be uploaded even if the task execution failed or was aborted.- Returns:
- indicates that the outputs should still be uploaded even if the task execution failed or was aborted
-
isRequired
public boolean isRequired()Indicates that at least one output should be found otherwise the task execution is failed.- Returns:
- indicates at least one output is required
-
setSource
The source context where the outputs can be found.- Parameters:
source
- the source context where the outputs can be found
-
setDirectoryName
The pre-configured directory name; only if the source is set to TaskOutputSource.OTHER_DIRECTORY.- Parameters:
directoryName
- the pre-configured directory name
-
setFilePattern
An ant-style pattern to select output files by path.- Parameters:
filePattern
- an ant-style pattern to select output files by path
-
setAlwaysUpload
public void setAlwaysUpload(boolean alwaysUpload) Indicates that the outputs should still be uploaded even if the task execution failed or was aborted.- Parameters:
alwaysUpload
- indicates that the outputs should still be uploaded even if the task execution failed or was aborted
-
setRequired
public void setRequired(boolean required) Indicates that at least one output should be found otherwise the task execution is failed.- Parameters:
required
- at least one output is required
-
equals
-
canEqual
-
hashCode
-
toString
-