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

  • Method Details

    • builder

      public static TaskInput.Builder builder()
    • toBuilder

      public TaskInput.Builder toBuilder()
    • getSource

      public TaskInputSource getSource()
      The source context where the inputs can be found.
      Returns:
      the source context where the inputs can be found
    • getNamespace

      public String getNamespace()
      The namespace containing matching objects; only if the source is set to TaskInputSource.OTHER_NAMESPACE.
      Returns:
      the namespace containing matching objects
    • getObjectNamePattern

      public String getObjectNamePattern()
      An ant-style pattern to select objects by name.
      Returns:
      an ant-style pattern to select objects by name
    • getVerification

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

      public TaskInputVerificationStatus getVerificationStatus()
      The task input verification status.
      Returns:
      the task input verification status
    • setSource

      public void setSource(TaskInputSource source)
      The source context where the inputs can be found.
      Parameters:
      source - the source context where the inputs can be found
    • setNamespace

      public void setNamespace(String namespace)
      The namespace containing matching objects; only if the source is set to TaskInputSource.OTHER_NAMESPACE.
      Parameters:
      namespace - the namespace containing matching objects
    • setObjectNamePattern

      public void setObjectNamePattern(String objectNamePattern)
      An ant-style pattern to select objects by name.
      Parameters:
      objectNamePattern - an ant-style pattern to select objects by name
    • setVerification

      public void setVerification(TaskInputVerification verification)
      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

      public void setVerificationStatus(TaskInputVerificationStatus verificationStatus)
      The task input verification status.
      Parameters:
      verificationStatus - This should not be set outside of the YellowDog Scheduler service.
    • 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