Package org.kinotic.continuum.grind.api
Interface JobDefinition
- All Superinterfaces:
HasSteps
- All Known Implementing Classes:
DefaultJobDefinition
A
JobDefinition provides a unit of work comprised of Task's and other JobDefinition
For every JobDefinition a Spring ApplicationContext is provided,
to allow Task's to automatically store and access data produced by Task's
Created by Navid Mitchell on 3/19/20-
Method Summary
Modifier and TypeMethodDescriptionstatic JobDefinitioncreate()static JobDefinitionstatic JobDefinitionstatic JobDefinitionstatic JobDefinitiongetScope()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
-
Method Details
-
getDescription
String getDescription()- Returns:
- the description of this
JobDefinition
-
isParallel
boolean isParallel()If thisJobDefinitionsupports running it'sTask's in parallel- Returns:
- true if
Tasks's can be run in parallel false if not
-
getScope
JobScope getScope()TheJobScopethat will be used during the execution of thisJobDefinition- Returns:
- the
JobScopethe default isJobScope.CHILD
-
task
- Parameters:
task- to add- Returns:
- this for fluent use
-
taskStoreResult
Adds aTaskto the list ofTask's that will be executed by thisJobDefinitionand stores the result of theTaskexecution within the context for thisJobDefinition- Parameters:
task- to add- Returns:
- this for fluent use
-
taskStoreResult
Adds aTaskto the list ofTask's that will be executed by thisJobDefinitionand stores the result of theTaskexecution within the context for thisJobDefinition- Parameters:
task- to addvariableName- the name to use when storing theTaskresult in the context for thisJobDefinition- Returns:
- this for fluent use
-
jobDefinition
Adds a innerJobDefinitionto thisJobDefinition- Parameters:
jobDefinition- to add into thisJobDefinition- Returns:
- this for fluent use
-
getSteps
- Specified by:
getStepsin interfaceHasSteps- Returns:
- the
Step's defined for thisJobDefinition
-
create
- Returns:
- the new
JobDefinition
-
create
-
create
-
create
-
create
-