Class TaskProperties
- java.lang.Object
-
- com.snowflake.connectors.common.task.TaskProperties
-
public class TaskProperties extends Object
Class representing main task properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaskProperties.BuilderBuilder for theTaskProperties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowOverlappingExecution()Returns whether the task allows overlapping execution.Stringcondition()Returns the task condition.Stringdefinition()Returns the task definition.booleanequals(Object o)inthashCode()ObjectNamename()Returns the task object name.List<TaskRef>predecessors()Returns the task predecessors.Stringschedule()Returns the task schedule.Stringstate()Returns the task state.IntegersuspendTaskAfterNumFailures()Returns the number of task failures before suspension.LonguserTaskTimeoutMs()Stringwarehouse()Returns the task warehouse.Optional<Identifier>warehouseIdentifier()Returns the task warehouse identifier.Optional<Reference>warehouseReference()Returns the task warehouse reference.
-
-
-
Method Detail
-
name
public ObjectName name()
Returns the task object name.- Returns:
- task object name
-
definition
public String definition()
Returns the task definition.- Returns:
- task definition
-
schedule
public String schedule()
Returns the task schedule.- Returns:
- task schedule
-
state
public String state()
Returns the task state.- Returns:
- task state
-
userTaskTimeoutMs
public Long userTaskTimeoutMs()
- Returns:
- Returns time limit on a single run of the task before it times out (in milliseconds).
-
warehouse
public String warehouse()
Returns the task warehouse.- Returns:
- task warehouse
-
warehouseReference
public Optional<Reference> warehouseReference()
Returns the task warehouse reference.- Returns:
- task warehouse reference
-
warehouseIdentifier
public Optional<Identifier> warehouseIdentifier()
Returns the task warehouse identifier.- Returns:
- task warehouse identifier
-
condition
public String condition()
Returns the task condition.- Returns:
- task condition
-
allowOverlappingExecution
public boolean allowOverlappingExecution()
Returns whether the task allows overlapping execution.- Returns:
- whether the task allows overlapping execution
-
suspendTaskAfterNumFailures
public Integer suspendTaskAfterNumFailures()
Returns the number of task failures before suspension.- Returns:
- number of task failures before suspension
-
predecessors
public List<TaskRef> predecessors()
Returns the task predecessors.Task predecessors are tasks, which were listed in the
AFTERparameter during task creation.- Returns:
- task predecessors
-
-