Class TaskDefinitionResource

java.lang.Object
org.springframework.hateoas.RepresentationModel<TaskDefinitionResource>
org.springframework.cloud.dataflow.rest.resource.TaskDefinitionResource

public class TaskDefinitionResource extends org.springframework.hateoas.RepresentationModel<TaskDefinitionResource>
A HATEOAS representation of a TaskDefinition.
Author:
Michael Minella, Glenn Renfro, Gunnar Hillert
  • Constructor Details

    • TaskDefinitionResource

      protected TaskDefinitionResource()
      Default constructor to be used by Jackson.
    • TaskDefinitionResource

      public TaskDefinitionResource(String name, String dslText, String description)
  • Method Details

    • getName

      public String getName()
    • getDslText

      public String getDslText()
    • getDescription

      public String getDescription()
    • isComposed

      public boolean isComposed()
      Return if this task is a composed task
      Returns:
      composed
    • setComposed

      public void setComposed(boolean composed)
      Set if this task is a composed task
      Parameters:
      composed - is task a composed task
    • isComposedTaskElement

      public boolean isComposedTaskElement()
    • setComposedTaskElement

      public void setComposedTaskElement(boolean composedTaskElement)
    • getStatus

      public String getStatus()
      Return the status of this task. Returns the value of Enum.toString().
      Returns:
      task status
    • getLastTaskExecution

      public TaskExecutionResource getLastTaskExecution()
      Returns:
      Last TaskExecution if available, null otherwise
    • setLastTaskExecution

      public void setLastTaskExecution(TaskExecutionResource lastTaskExecution)
      Parameters:
      lastTaskExecution - the last Task Execution