Class Task
java.lang.Object
com.netflix.conductor.common.metadata.tasks.Task
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()deepCopy()booleanlonglongintintlongintintlongintlongintgetSeq()intlonglongintinthashCode()voidbooleanbooleanbooleanbooleanbooleanvoidsetCallbackAfterSeconds(long callbackAfterSeconds) voidsetCallbackFromWorker(boolean callbackFromWorker) voidsetCorrelationId(String correlationId) voidvoidsetEndTime(long endTime) voidsetExecuted(boolean executed) voidsetExecutionNameSpace(String executionNameSpace) voidsetExternalInputPayloadStoragePath(String externalInputPayloadStoragePath) voidsetExternalOutputPayloadStoragePath(String externalOutputPayloadStoragePath) voidsetInputData(Map<String, Object> inputData) voidsetIsolationGroupId(String isolationGroupId) voidsetIteration(int iteration) voidsetOutputData(Map<String, Object> outputData) voidsetParentTaskId(String parentTaskId) voidsetPollCount(int pollCount) voidsetRateLimitFrequencyInSeconds(int rateLimitFrequencyInSeconds) voidsetRateLimitPerFrequency(int rateLimitPerFrequency) voidsetReasonForIncompletion(String reasonForIncompletion) voidsetReferenceTaskName(String referenceTaskName) voidsetResponseTimeoutSeconds(long responseTimeoutSeconds) voidsetRetried(boolean retried) voidsetRetriedTaskId(String retriedTaskId) voidsetRetryCount(int retryCount) voidsetScheduledTime(long scheduledTime) voidsetSeq(int seq) voidsetStartDelayInSeconds(int startDelayInSeconds) voidsetStartTime(long startTime) voidsetStatus(Task.Status status) voidsetSubworkflowChanged(boolean subworkflowChanged) voidsetSubWorkflowId(String subWorkflowId) voidsetTaskDefName(String taskDefName) voidvoidsetTaskType(String taskType) voidsetUpdateTime(long updateTime) voidsetWorkerId(String workerId) voidsetWorkflowInstanceId(String workflowInstanceId) voidsetWorkflowPriority(int workflowPriority) voidsetWorkflowTask(WorkflowTask workflowTask) setWorkflowType(String workflowType) toString()
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
getTaskType
- Returns:
- Type of the task
- See Also:
-
setTaskType
-
getStatus
- Returns:
- Status of the task
-
setStatus
- Parameters:
status- Status of the task
-
getInputData
-
setInputData
-
getReferenceTaskName
- Returns:
- the referenceTaskName
-
setReferenceTaskName
- Parameters:
referenceTaskName- the referenceTaskName to set
-
getCorrelationId
- Returns:
- the correlationId
-
setCorrelationId
- Parameters:
correlationId- the correlationId to set
-
getRetryCount
public int getRetryCount()- Returns:
- the retryCount
-
setRetryCount
public void setRetryCount(int retryCount) - Parameters:
retryCount- the retryCount to set
-
getScheduledTime
public long getScheduledTime()- Returns:
- the scheduledTime
-
setScheduledTime
public void setScheduledTime(long scheduledTime) - Parameters:
scheduledTime- the scheduledTime to set
-
getStartTime
public long getStartTime()- Returns:
- the startTime
-
setStartTime
public void setStartTime(long startTime) - Parameters:
startTime- the startTime to set
-
getEndTime
public long getEndTime()- Returns:
- the endTime
-
setEndTime
public void setEndTime(long endTime) - Parameters:
endTime- the endTime to set
-
getStartDelayInSeconds
public int getStartDelayInSeconds()- Returns:
- the startDelayInSeconds
-
setStartDelayInSeconds
public void setStartDelayInSeconds(int startDelayInSeconds) - Parameters:
startDelayInSeconds- the startDelayInSeconds to set
-
getRetriedTaskId
- Returns:
- the retriedTaskId
-
setRetriedTaskId
- Parameters:
retriedTaskId- the retriedTaskId to set
-
getSeq
public int getSeq()- Returns:
- the seq
-
setSeq
public void setSeq(int seq) - Parameters:
seq- the seq to set
-
getUpdateTime
public long getUpdateTime()- Returns:
- the updateTime
-
setUpdateTime
public void setUpdateTime(long updateTime) - Parameters:
updateTime- the updateTime to set
-
getQueueWaitTime
public long getQueueWaitTime()- Returns:
- the queueWaitTime
-
isRetried
public boolean isRetried()- Returns:
- True if the task has been retried after failure
-
setRetried
public void setRetried(boolean retried) - Parameters:
retried- the retried to set
-
isExecuted
public boolean isExecuted()- Returns:
- True if the task has completed its lifecycle within conductor (from start to completion to being updated in the datastore)
-
setExecuted
public void setExecuted(boolean executed) - Parameters:
executed- the executed value to set
-
getPollCount
public int getPollCount()- Returns:
- No. of times task has been polled
-
setPollCount
public void setPollCount(int pollCount) -
incrementPollCount
public void incrementPollCount() -
isCallbackFromWorker
public boolean isCallbackFromWorker() -
setCallbackFromWorker
public void setCallbackFromWorker(boolean callbackFromWorker) -
getTaskDefName
- Returns:
- Name of the task definition
-
setTaskDefName
- Parameters:
taskDefName- Name of the task definition
-
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
-
getWorkflowInstanceId
- Returns:
- the workflowInstanceId
-
setWorkflowInstanceId
- Parameters:
workflowInstanceId- the workflowInstanceId to set
-
getWorkflowType
-
setWorkflowType
- Parameters:
workflowType- the name of the workflow- Returns:
- the task object with the workflow type set
-
getTaskId
- Returns:
- the taskId
-
setTaskId
- Parameters:
taskId- the taskId to set
-
getReasonForIncompletion
- Returns:
- the reasonForIncompletion
-
setReasonForIncompletion
- Parameters:
reasonForIncompletion- the reasonForIncompletion to set
-
getCallbackAfterSeconds
public long getCallbackAfterSeconds()- Returns:
- the callbackAfterSeconds
-
setCallbackAfterSeconds
public void setCallbackAfterSeconds(long callbackAfterSeconds) - Parameters:
callbackAfterSeconds- the callbackAfterSeconds to set
-
getWorkerId
- Returns:
- the workerId
-
setWorkerId
- Parameters:
workerId- the workerId to set
-
getOutputData
- Returns:
- the outputData
-
setOutputData
- Parameters:
outputData- the outputData to set
-
getWorkflowTask
- Returns:
- Workflow Task definition
-
setWorkflowTask
- Parameters:
workflowTask- Task definition
-
getDomain
- Returns:
- the domain
-
setDomain
- Parameters:
domain- the Domain
-
getTaskDefinition
- Returns:
Optionalcontaining the task definition if available
-
getRateLimitPerFrequency
public int getRateLimitPerFrequency() -
setRateLimitPerFrequency
public void setRateLimitPerFrequency(int rateLimitPerFrequency) -
getRateLimitFrequencyInSeconds
public int getRateLimitFrequencyInSeconds() -
setRateLimitFrequencyInSeconds
public void setRateLimitFrequencyInSeconds(int rateLimitFrequencyInSeconds) -
getExternalInputPayloadStoragePath
- Returns:
- the external storage path for the task input payload
-
setExternalInputPayloadStoragePath
- Parameters:
externalInputPayloadStoragePath- the external storage path where the task input payload is stored
-
getExternalOutputPayloadStoragePath
- Returns:
- the external storage path for the task output payload
-
setExternalOutputPayloadStoragePath
- Parameters:
externalOutputPayloadStoragePath- the external storage path where the task output payload is stored
-
setIsolationGroupId
-
getIsolationGroupId
-
getExecutionNameSpace
-
setExecutionNameSpace
-
getIteration
public int getIteration()- Returns:
- the iteration
-
setIteration
public void setIteration(int iteration) - Parameters:
iteration- iteration
-
isLoopOverTask
public boolean isLoopOverTask() -
getWorkflowPriority
public int getWorkflowPriority()- Returns:
- the priority defined on workflow
-
setWorkflowPriority
public void setWorkflowPriority(int workflowPriority) - Parameters:
workflowPriority- Priority defined for workflow
-
isSubworkflowChanged
public boolean isSubworkflowChanged() -
setSubworkflowChanged
public void setSubworkflowChanged(boolean subworkflowChanged) -
getSubWorkflowId
-
setSubWorkflowId
-
getParentTaskId
-
setParentTaskId
-
copy
-
deepCopy
- Returns:
- a deep copy of the task instance To be used inside copy Workflow method to provide a
valid deep copied object. Note: This does not copy the following fields:
- retried
- updateTime
- retriedTaskId
-
toString
-
equals
-
hashCode
public int hashCode()
-