java.lang.Object
com.netflix.conductor.common.metadata.Auditable
com.netflix.conductor.common.metadata.tasks.TaskDef

public class TaskDef extends Auditable
  • Field Details

  • Constructor Details

    • TaskDef

      public TaskDef()
    • TaskDef

      public TaskDef(String name)
    • TaskDef

      public TaskDef(String name, String description)
    • TaskDef

      public TaskDef(String name, String description, int retryCount, long timeoutSeconds)
    • TaskDef

      public TaskDef(String name, String description, String ownerEmail, int retryCount, long timeoutSeconds, long responseTimeoutSeconds)
  • Method Details

    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getDescription

      public String getDescription()
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • getRetryCount

      public int getRetryCount()
      Returns:
      the retryCount
    • setRetryCount

      public void setRetryCount(int retryCount)
      Parameters:
      retryCount - the retryCount to set
    • getTimeoutSeconds

      public long getTimeoutSeconds()
      Returns:
      the timeoutSeconds
    • setTimeoutSeconds

      public void setTimeoutSeconds(long timeoutSeconds)
      Parameters:
      timeoutSeconds - the timeoutSeconds to set
    • getInputKeys

      public List<String> getInputKeys()
      Returns:
      Returns the input keys
    • setInputKeys

      public void setInputKeys(List<String> inputKeys)
      Parameters:
      inputKeys - Set of keys that the task accepts in the input map
    • getOutputKeys

      public List<String> getOutputKeys()
      Returns:
      Returns the output keys for the task when executed
    • setOutputKeys

      public void setOutputKeys(List<String> outputKeys)
      Parameters:
      outputKeys - Sets the output keys
    • getTimeoutPolicy

      public TaskDef.TimeoutPolicy getTimeoutPolicy()
      Returns:
      the timeoutPolicy
    • setTimeoutPolicy

      public void setTimeoutPolicy(TaskDef.TimeoutPolicy timeoutPolicy)
      Parameters:
      timeoutPolicy - the timeoutPolicy to set
    • getRetryLogic

      public TaskDef.RetryLogic getRetryLogic()
      Returns:
      the retryLogic
    • setRetryLogic

      public void setRetryLogic(TaskDef.RetryLogic retryLogic)
      Parameters:
      retryLogic - the retryLogic to set
    • getRetryDelaySeconds

      public int getRetryDelaySeconds()
      Returns:
      the retryDelaySeconds
    • getResponseTimeoutSeconds

      public long getResponseTimeoutSeconds()
      Returns:
      the timeout for task to send response. After this timeout, the task will be re-queued
    • setResponseTimeoutSeconds

      public void setResponseTimeoutSeconds(long responseTimeoutSeconds)
      Parameters:
      responseTimeoutSeconds - - timeout for task to send response. After this timeout, the task will be re-queued
    • setRetryDelaySeconds

      public void setRetryDelaySeconds(int retryDelaySeconds)
      Parameters:
      retryDelaySeconds - the retryDelaySeconds to set
    • getInputTemplate

      public Map<String,Object> getInputTemplate()
      Returns:
      the inputTemplate
    • getRateLimitPerFrequency

      public Integer getRateLimitPerFrequency()
      Returns:
      rateLimitPerFrequency The max number of tasks that will be allowed to be executed per rateLimitFrequencyInSeconds.
    • setRateLimitPerFrequency

      public void setRateLimitPerFrequency(Integer rateLimitPerFrequency)
      Parameters:
      rateLimitPerFrequency - The max number of tasks that will be allowed to be executed per rateLimitFrequencyInSeconds. Setting the value to 0 removes the rate limit
    • getRateLimitFrequencyInSeconds

      public Integer getRateLimitFrequencyInSeconds()
      Returns:
      rateLimitFrequencyInSeconds: The time bucket that is used to rate limit tasks based on getRateLimitPerFrequency() If null or not set, then defaults to 1 second
    • setRateLimitFrequencyInSeconds

      public void setRateLimitFrequencyInSeconds(Integer rateLimitFrequencyInSeconds)
      Parameters:
      rateLimitFrequencyInSeconds - : The time window/bucket for which the rate limit needs to be applied. This will only have affect if getRateLimitPerFrequency() is greater than zero
    • setConcurrentExecLimit

      public void setConcurrentExecLimit(Integer concurrentExecLimit)
      Parameters:
      concurrentExecLimit - Limit of number of concurrent task that can be IN_PROGRESS at a given time. Seting the value to 0 removes the limit.
    • getConcurrentExecLimit

      public Integer getConcurrentExecLimit()
      Returns:
      Limit of number of concurrent task that can be IN_PROGRESS at a given time
    • concurrencyLimit

      public int concurrencyLimit()
      Returns:
      concurrency limit
    • setInputTemplate

      public void setInputTemplate(Map<String,Object> inputTemplate)
      Parameters:
      inputTemplate - the inputTemplate to set
    • getIsolationGroupId

      public String getIsolationGroupId()
    • setIsolationGroupId

      public void setIsolationGroupId(String isolationGroupId)
    • getExecutionNameSpace

      public String getExecutionNameSpace()
    • setExecutionNameSpace

      public void setExecutionNameSpace(String executionNameSpace)
    • getOwnerEmail

      public String getOwnerEmail()
      Returns:
      the email of the owner of this task definition
    • setOwnerEmail

      public void setOwnerEmail(String ownerEmail)
      Parameters:
      ownerEmail - the owner email to set
    • setPollTimeoutSeconds

      public void setPollTimeoutSeconds(Integer pollTimeoutSeconds)
      Parameters:
      pollTimeoutSeconds - the poll timeout to set
    • getPollTimeoutSeconds

      public Integer getPollTimeoutSeconds()
      Returns:
      the poll timeout of this task definition
    • setBackoffScaleFactor

      public void setBackoffScaleFactor(Integer backoffScaleFactor)
      Parameters:
      backoffScaleFactor - the backoff rate to set
    • getBackoffScaleFactor

      public Integer getBackoffScaleFactor()
      Returns:
      the backoff rate of this task definition
    • getBaseType

      public String getBaseType()
    • setBaseType

      public void setBaseType(String baseType)
    • getInputSchema

      public SchemaDef getInputSchema()
    • setInputSchema

      public void setInputSchema(SchemaDef inputSchema)
    • getOutputSchema

      public SchemaDef getOutputSchema()
    • setOutputSchema

      public void setOutputSchema(SchemaDef outputSchema)
    • isEnforceSchema

      public boolean isEnforceSchema()
    • setEnforceSchema

      public void setEnforceSchema(boolean enforceSchema)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object