Class DefaultJobDefinition
java.lang.Object
org.kinotic.continuum.grind.internal.api.DefaultJobDefinition
- All Implemented Interfaces:
HasSteps,JobDefinition
NOTE: should not be instantiated directly
Created by Navid Mitchell on 3/19/20
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultJobDefinition(String description, JobScope jobScope, boolean parallel) -
Method Summary
Modifier and TypeMethodDescriptiongetScope()TheJobScopethat will be used during the execution of thisJobDefinitiongetSteps()booleanIf thisJobDefinitionsupports running it'sTask's in paralleljobDefinition(JobDefinition jobDefinition) Adds a innerJobDefinitionto thisJobDefinitiontaskStoreResult(Task<?> task) Adds aTaskto the list ofTask's that will be executed by thisJobDefinitionand stores the result of theTaskexecution within the context for thisJobDefinitiontaskStoreResult(Task<?> task, String variableName) Adds aTaskto the list ofTask's that will be executed by thisJobDefinitionand stores the result of theTaskexecution within the context for thisJobDefinition
-
Constructor Details
-
DefaultJobDefinition
-
-
Method Details
-
getDescription
- Specified by:
getDescriptionin interfaceJobDefinition- Returns:
- the description of this
JobDefinition
-
isParallel
public boolean isParallel()Description copied from interface:JobDefinitionIf thisJobDefinitionsupports running it'sTask's in parallel- Specified by:
isParallelin interfaceJobDefinition- Returns:
- true if
Tasks's can be run in parallel false if not
-
getScope
Description copied from interface:JobDefinitionTheJobScopethat will be used during the execution of thisJobDefinition- Specified by:
getScopein interfaceJobDefinition- Returns:
- the
JobScopethe default isJobScope.CHILD
-
task
Description copied from interface:JobDefinition- Specified by:
taskin interfaceJobDefinition- Parameters:
task- to add- Returns:
- this for fluent use
-
taskStoreResult
Description copied from interface:JobDefinitionAdds aTaskto the list ofTask's that will be executed by thisJobDefinitionand stores the result of theTaskexecution within the context for thisJobDefinition- Specified by:
taskStoreResultin interfaceJobDefinition- Parameters:
task- to add- Returns:
- this for fluent use
-
taskStoreResult
Description copied from interface:JobDefinitionAdds aTaskto the list ofTask's that will be executed by thisJobDefinitionand stores the result of theTaskexecution within the context for thisJobDefinition- Specified by:
taskStoreResultin interfaceJobDefinition- Parameters:
task- to addvariableName- the name to use when storing theTaskresult in the context for thisJobDefinition- Returns:
- this for fluent use
-
jobDefinition
Description copied from interface:JobDefinitionAdds a innerJobDefinitionto thisJobDefinition- Specified by:
jobDefinitionin interfaceJobDefinition- Parameters:
jobDefinition- to add into thisJobDefinition- Returns:
- this for fluent use
-
getSteps
- Specified by:
getStepsin interfaceHasSteps- Specified by:
getStepsin interfaceJobDefinition- Returns:
- the
Step's defined for thisJobDefinition
-