@TaskTimeoutConstraint @Valid public class TaskDef extends Auditable
| Modifier and Type | Class and Description |
|---|---|
static class |
TaskDef.RetryLogic |
static class |
TaskDef.TimeoutPolicy |
| Constructor and Description |
|---|
TaskDef() |
TaskDef(java.lang.String name) |
TaskDef(java.lang.String name,
java.lang.String description) |
TaskDef(java.lang.String name,
java.lang.String description,
int retryCount,
long timeoutSeconds) |
TaskDef(java.lang.String name,
java.lang.String description,
java.lang.String ownerEmail,
int retryCount,
long timeoutSeconds,
long responseTimeoutSeconds) |
| Modifier and Type | Method and Description |
|---|---|
int |
concurrencyLimit() |
boolean |
equals(java.lang.Object o) |
java.lang.Integer |
getConcurrentExecLimit() |
java.lang.String |
getDescription() |
java.lang.String |
getExecutionNameSpace() |
java.util.List<java.lang.String> |
getInputKeys() |
java.util.Map<java.lang.String,java.lang.Object> |
getInputTemplate() |
java.lang.String |
getIsolationGroupId() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getOutputKeys() |
java.lang.String |
getOwnerEmail() |
java.lang.Integer |
getPollTimeoutSeconds() |
java.lang.Integer |
getRateLimitFrequencyInSeconds() |
java.lang.Integer |
getRateLimitPerFrequency() |
long |
getResponseTimeoutSeconds() |
int |
getRetryCount() |
int |
getRetryDelaySeconds() |
TaskDef.RetryLogic |
getRetryLogic() |
TaskDef.TimeoutPolicy |
getTimeoutPolicy() |
long |
getTimeoutSeconds() |
int |
hashCode() |
void |
setConcurrentExecLimit(java.lang.Integer concurrentExecLimit) |
void |
setDescription(java.lang.String description) |
void |
setExecutionNameSpace(java.lang.String executionNameSpace) |
void |
setInputKeys(java.util.List<java.lang.String> inputKeys) |
void |
setInputTemplate(java.util.Map<java.lang.String,java.lang.Object> inputTemplate) |
void |
setIsolationGroupId(java.lang.String isolationGroupId) |
void |
setName(java.lang.String name) |
void |
setOutputKeys(java.util.List<java.lang.String> outputKeys) |
void |
setOwnerEmail(java.lang.String ownerEmail) |
void |
setPollTimeoutSeconds(java.lang.Integer pollTimeoutSeconds) |
void |
setRateLimitFrequencyInSeconds(java.lang.Integer rateLimitFrequencyInSeconds) |
void |
setRateLimitPerFrequency(java.lang.Integer rateLimitPerFrequency) |
void |
setResponseTimeoutSeconds(long responseTimeoutSeconds) |
void |
setRetryCount(int retryCount) |
void |
setRetryDelaySeconds(int retryDelaySeconds) |
void |
setRetryLogic(TaskDef.RetryLogic retryLogic) |
void |
setTimeoutPolicy(TaskDef.TimeoutPolicy timeoutPolicy) |
void |
setTimeoutSeconds(long timeoutSeconds) |
java.lang.String |
toString() |
getCreatedBy, getCreateTime, getOwnerApp, getUpdatedBy, getUpdateTime, setCreatedBy, setCreateTime, setOwnerApp, setUpdatedBy, setUpdateTimepublic TaskDef()
public TaskDef(java.lang.String name)
public TaskDef(java.lang.String name,
java.lang.String description)
public TaskDef(java.lang.String name,
java.lang.String description,
int retryCount,
long timeoutSeconds)
public TaskDef(java.lang.String name,
java.lang.String description,
java.lang.String ownerEmail,
int retryCount,
long timeoutSeconds,
long responseTimeoutSeconds)
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description to setpublic int getRetryCount()
public void setRetryCount(int retryCount)
retryCount - the retryCount to setpublic long getTimeoutSeconds()
public void setTimeoutSeconds(long timeoutSeconds)
timeoutSeconds - the timeoutSeconds to setpublic java.util.List<java.lang.String> getInputKeys()
public void setInputKeys(java.util.List<java.lang.String> inputKeys)
inputKeys - Set of keys that the task accepts in the input mappublic java.util.List<java.lang.String> getOutputKeys()
public void setOutputKeys(java.util.List<java.lang.String> outputKeys)
outputKeys - Sets the output keyspublic TaskDef.TimeoutPolicy getTimeoutPolicy()
public void setTimeoutPolicy(TaskDef.TimeoutPolicy timeoutPolicy)
timeoutPolicy - the timeoutPolicy to setpublic TaskDef.RetryLogic getRetryLogic()
public void setRetryLogic(TaskDef.RetryLogic retryLogic)
retryLogic - the retryLogic to setpublic int getRetryDelaySeconds()
public long getResponseTimeoutSeconds()
public void setResponseTimeoutSeconds(long responseTimeoutSeconds)
responseTimeoutSeconds - - timeout for task to send response. After this timeout, the task will be re-queuedpublic void setRetryDelaySeconds(int retryDelaySeconds)
retryDelaySeconds - the retryDelaySeconds to setpublic java.util.Map<java.lang.String,java.lang.Object> getInputTemplate()
public java.lang.Integer getRateLimitPerFrequency()
public void setRateLimitPerFrequency(java.lang.Integer rateLimitPerFrequency)
rateLimitPerFrequency - The max number of tasks that will be allowed to be executed per rateLimitFrequencyInSeconds.
Setting the value to 0 removes the rate limitpublic java.lang.Integer getRateLimitFrequencyInSeconds()
getRateLimitPerFrequency()
If null or not set, then defaults to 1 secondpublic void setRateLimitFrequencyInSeconds(java.lang.Integer rateLimitFrequencyInSeconds)
rateLimitFrequencyInSeconds: - The time window/bucket for which the rate limit needs to be applied. This will only have affect if getRateLimitPerFrequency() is greater than zeropublic void setConcurrentExecLimit(java.lang.Integer concurrentExecLimit)
concurrentExecLimit - Limit of number of concurrent task that can be IN_PROGRESS at a given time. Seting the value to 0 removes the limit.public java.lang.Integer getConcurrentExecLimit()
public int concurrencyLimit()
public void setInputTemplate(java.util.Map<java.lang.String,java.lang.Object> inputTemplate)
inputTemplate - the inputTemplate to setpublic java.lang.String getIsolationGroupId()
public void setIsolationGroupId(java.lang.String isolationGroupId)
public java.lang.String getExecutionNameSpace()
public void setExecutionNameSpace(java.lang.String executionNameSpace)
public java.lang.String getOwnerEmail()
public void setOwnerEmail(java.lang.String ownerEmail)
ownerEmail - the owner email to setpublic void setPollTimeoutSeconds(java.lang.Integer pollTimeoutSeconds)
pollTimeoutSeconds - the poll timeout to setpublic java.lang.Integer getPollTimeoutSeconds()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object