public interface StepDefinition
Modifier and Type | Interface and Description |
---|---|
static class |
StepDefinition.StepDefinitionType |
Modifier and Type | Method and Description |
---|---|
static StepDefinition |
create(java.lang.String name,
StepDefinition.StepDefinitionType type)
Creates an in-memory default instance of a Step given a name and a type
|
void |
deserialize(com.fasterxml.jackson.databind.JsonNode json)
Deserialize a json response and applies it to this mapping
|
java.lang.Integer |
getBatchSize()
Returns the batch size
|
com.fasterxml.jackson.databind.JsonNode |
getCustomHook()
Returns the customHook
|
java.lang.String |
getDescription()
Returns the description of the Step
|
java.lang.String |
getLang()
Returns the language setting of the step
|
java.lang.String |
getLanguage()
Deprecated.
|
java.lang.String |
getModulePath()
Returns path to the module
|
java.lang.String |
getName()
Returns the name of the step
|
java.util.Map<java.lang.String,java.lang.Object> |
getOptions()
Returns the step options as a map
|
int |
getRetryLimit()
Returns the retry limit for the step
|
java.lang.String |
getSourceQuery()
Returns the step sourceQuery
|
java.lang.Integer |
getThreadCount()
Returns the thread count
|
StepDefinition.StepDefinitionType |
getType()
Returns the type of the Step
|
java.lang.Integer |
getVersion()
Return the step version
|
void |
incrementVersion()
Automatically increments the version of the mapping by 1
|
void |
setBatchSize(java.lang.Integer batchSize)
Sets the batch size for running this step
|
void |
setCustomHook(com.fasterxml.jackson.databind.JsonNode hookObj)
Sets the customHook
|
void |
setDescription(java.lang.String description)
Sets the description for the step
|
void |
setModulePath(java.lang.String path)
Sets the module path
|
void |
setName(java.lang.String name)
Sets the name of the step
|
void |
setOptions(java.util.Map<java.lang.String,java.lang.Object> options)
Sets the step options
|
void |
setRetryLimit(int retryLimit)
Sets the retry limit for the step
|
void |
setSourceQuery(java.lang.String sourceQuery)
Sets the sourceQuery for the step
|
void |
setThreadCount(java.lang.Integer threadCount)
Sets the thread count for running this step
|
void |
setType(StepDefinition.StepDefinitionType type)
Sets the type of the step
|
void |
setVersion(java.lang.Integer version)
Sets the step version number
|
StepDefinition |
transformFromStep(StepDefinition stepDefinition,
Step step) |
Step |
transformToStep(java.lang.String stepName,
StepDefinition stepDefinition,
Step step) |
static StepDefinition create(java.lang.String name, StepDefinition.StepDefinitionType type)
name
- - the name of the Steptype
- - the type of the mappingjava.lang.String getName()
void setName(java.lang.String name)
name
- - a step name@Deprecated java.lang.String getLanguage()
java.lang.String getLang()
java.lang.Integer getVersion()
void setVersion(java.lang.Integer version)
version
- - a step versionjava.util.Map<java.lang.String,java.lang.Object> getOptions()
void setOptions(java.util.Map<java.lang.String,java.lang.Object> options)
options
- - a options mapjava.lang.String getModulePath()
void setModulePath(java.lang.String path)
path
- - a string path to the modulecom.fasterxml.jackson.databind.JsonNode getCustomHook()
void setCustomHook(com.fasterxml.jackson.databind.JsonNode hookObj)
hookObj
- - a customHook nodejava.lang.String getSourceQuery()
void setSourceQuery(java.lang.String sourceQuery)
sourceQuery
- - a string sourceQueryint getRetryLimit()
void setRetryLimit(int retryLimit)
retryLimit
- - an integer retry limitStepDefinition.StepDefinitionType getType()
void setType(StepDefinition.StepDefinitionType type)
type
- - a step typejava.lang.String getDescription()
void setDescription(java.lang.String description)
description
- - a string descriptionjava.lang.Integer getBatchSize()
void setBatchSize(java.lang.Integer batchSize)
batchSize
- - an integerjava.lang.Integer getThreadCount()
void setThreadCount(java.lang.Integer threadCount)
threadCount
- - an integervoid incrementVersion()
void deserialize(com.fasterxml.jackson.databind.JsonNode json)
json
- - the JsonNode you want deserializeStep transformToStep(java.lang.String stepName, StepDefinition stepDefinition, Step step)
stepName
- name of the stepstepDefinition
- step definition object to transform fromstep
- step object to be transformedStepDefinition transformFromStep(StepDefinition stepDefinition, Step step)
stepDefinition
- step definition to be transformedstep
- step object to transform from