Class TaskDef
java.lang.Object
com.netflix.conductor.common.metadata.Auditable
com.netflix.conductor.common.metadata.tasks.TaskDef
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetName()longintintlonginthashCode()booleanvoidsetBackoffScaleFactor(Integer backoffScaleFactor) voidsetBaseType(String baseType) voidsetConcurrentExecLimit(Integer concurrentExecLimit) voidsetDescription(String description) voidsetEnforceSchema(boolean enforceSchema) voidsetExecutionNameSpace(String executionNameSpace) voidsetInputKeys(List<String> inputKeys) voidsetInputSchema(SchemaDef inputSchema) voidsetInputTemplate(Map<String, Object> inputTemplate) voidsetIsolationGroupId(String isolationGroupId) voidvoidsetOutputKeys(List<String> outputKeys) voidsetOutputSchema(SchemaDef outputSchema) voidsetOwnerEmail(String ownerEmail) voidsetPollTimeoutSeconds(Integer pollTimeoutSeconds) voidsetRateLimitFrequencyInSeconds(Integer rateLimitFrequencyInSeconds) voidsetRateLimitPerFrequency(Integer rateLimitPerFrequency) voidsetResponseTimeoutSeconds(long responseTimeoutSeconds) voidsetRetryCount(int retryCount) voidsetRetryDelaySeconds(int retryDelaySeconds) voidsetRetryLogic(TaskDef.RetryLogic retryLogic) voidsetTimeoutPolicy(TaskDef.TimeoutPolicy timeoutPolicy) voidsetTimeoutSeconds(long timeoutSeconds) toString()Methods inherited from class com.netflix.conductor.common.metadata.Auditable
getCreatedBy, getCreateTime, getOwnerApp, getUpdatedBy, getUpdateTime, setCreatedBy, setCreateTime, setOwnerApp, setUpdatedBy, setUpdateTime
-
Field Details
-
ONE_HOUR
public static final int ONE_HOUR- See Also:
-
-
Constructor Details
-
TaskDef
public TaskDef() -
TaskDef
-
TaskDef
-
TaskDef
-
TaskDef
-
-
Method Details
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getDescription
- Returns:
- the description
-
setDescription
- 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
- Returns:
- Returns the input keys
-
setInputKeys
- Parameters:
inputKeys- Set of keys that the task accepts in the input map
-
getOutputKeys
- Returns:
- Returns the output keys for the task when executed
-
setOutputKeys
- Parameters:
outputKeys- Sets the output keys
-
getTimeoutPolicy
- Returns:
- the timeoutPolicy
-
setTimeoutPolicy
- Parameters:
timeoutPolicy- the timeoutPolicy to set
-
getRetryLogic
- Returns:
- the retryLogic
-
setRetryLogic
- 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
- Returns:
- the inputTemplate
-
getRateLimitPerFrequency
- Returns:
- rateLimitPerFrequency The max number of tasks that will be allowed to be executed per rateLimitFrequencyInSeconds.
-
setRateLimitPerFrequency
- 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
- 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
- Parameters:
rateLimitFrequencyInSeconds- : The time window/bucket for which the rate limit needs to be applied. This will only have affect ifgetRateLimitPerFrequency()is greater than zero
-
setConcurrentExecLimit
- 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
- Returns:
- Limit of number of concurrent task that can be IN_PROGRESS at a given time
-
concurrencyLimit
public int concurrencyLimit()- Returns:
- concurrency limit
-
setInputTemplate
- Parameters:
inputTemplate- the inputTemplate to set
-
getIsolationGroupId
-
setIsolationGroupId
-
getExecutionNameSpace
-
setExecutionNameSpace
-
getOwnerEmail
- Returns:
- the email of the owner of this task definition
-
setOwnerEmail
- Parameters:
ownerEmail- the owner email to set
-
setPollTimeoutSeconds
- Parameters:
pollTimeoutSeconds- the poll timeout to set
-
getPollTimeoutSeconds
- Returns:
- the poll timeout of this task definition
-
setBackoffScaleFactor
- Parameters:
backoffScaleFactor- the backoff rate to set
-
getBackoffScaleFactor
- Returns:
- the backoff rate of this task definition
-
getBaseType
-
setBaseType
-
getInputSchema
-
setInputSchema
-
getOutputSchema
-
setOutputSchema
-
isEnforceSchema
public boolean isEnforceSchema() -
setEnforceSchema
public void setEnforceSchema(boolean enforceSchema) -
toString
-
equals
-
hashCode
public int hashCode()
-