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 class
TaskProperties.Builder
Builder for theTaskProperties
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowOverlappingExecution()
Returns whether the task allows overlapping execution.String
condition()
Returns the task condition.String
definition()
Returns the task definition.boolean
equals(Object o)
int
hashCode()
ObjectName
name()
Returns the task object name.String
schedule()
Returns the task schedule.String
state()
Returns the task state.Integer
suspendTaskAfterNumFailures()
Returns the number of task failures before suspension.String
warehouse()
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
-
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
-
-