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:
  • Method Details

    • builder

      public static TaskOutput.Builder builder()
    • toBuilder

      public TaskOutput.Builder toBuilder()
    • getSource

      public TaskOutputSource getSource()
      The source context where the outputs can be found.
      Returns:
      the source context where the outputs can be found
    • getDirectoryName

      public String getDirectoryName()
      The pre-configured directory name; only if the source is set to TaskOutputSource.OTHER_DIRECTORY.
      Returns:
      the pre-configured directory name
    • getFilePattern

      public String 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

      public void setSource(TaskOutputSource source)
      The source context where the outputs can be found.
      Parameters:
      source - the source context where the outputs can be found
    • setDirectoryName

      public void setDirectoryName(String directoryName)
      The pre-configured directory name; only if the source is set to TaskOutputSource.OTHER_DIRECTORY.
      Parameters:
      directoryName - the pre-configured directory name
    • setFilePattern

      public void setFilePattern(String filePattern)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object