public abstract class AbstractStepDefinition extends java.lang.Object implements StepDefinition
StepDefinition.StepDefinitionType
Modifier | Constructor and Description |
---|---|
protected |
AbstractStepDefinition() |
Modifier and Type | Method and Description |
---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
@Deprecated public java.lang.String getLanguage()
StepDefinition
getLanguage
in interface StepDefinition
public java.lang.String getLang()
StepDefinition
getLang
in interface StepDefinition
public java.lang.String getName()
StepDefinition
getName
in interface StepDefinition
public void setName(java.lang.String name)
StepDefinition
setName
in interface StepDefinition
name
- - a step namepublic StepDefinition.StepDefinitionType getType()
StepDefinition
getType
in interface StepDefinition
public void setType(StepDefinition.StepDefinitionType type)
StepDefinition
setType
in interface StepDefinition
type
- - a step typepublic java.lang.String getDescription()
StepDefinition
getDescription
in interface StepDefinition
public void setDescription(java.lang.String description)
StepDefinition
setDescription
in interface StepDefinition
description
- - a string descriptionpublic java.lang.Integer getVersion()
StepDefinition
getVersion
in interface StepDefinition
public void setVersion(java.lang.Integer version)
StepDefinition
setVersion
in interface StepDefinition
version
- - a step versionpublic java.util.Map<java.lang.String,java.lang.Object> getOptions()
StepDefinition
getOptions
in interface StepDefinition
public void setOptions(java.util.Map<java.lang.String,java.lang.Object> options)
StepDefinition
setOptions
in interface StepDefinition
options
- - a options mappublic java.lang.String getModulePath()
StepDefinition
getModulePath
in interface StepDefinition
public void setModulePath(java.lang.String path)
StepDefinition
setModulePath
in interface StepDefinition
path
- - a string path to the modulepublic com.fasterxml.jackson.databind.JsonNode getCustomHook()
StepDefinition
getCustomHook
in interface StepDefinition
public void setCustomHook(com.fasterxml.jackson.databind.JsonNode hookObj)
StepDefinition
setCustomHook
in interface StepDefinition
hookObj
- - a customHook nodepublic java.lang.String getSourceQuery()
StepDefinition
getSourceQuery
in interface StepDefinition
public void setSourceQuery(java.lang.String sourceQuery)
StepDefinition
setSourceQuery
in interface StepDefinition
sourceQuery
- - a string sourceQuerypublic int getRetryLimit()
StepDefinition
getRetryLimit
in interface StepDefinition
public void setRetryLimit(int retryLimit)
StepDefinition
setRetryLimit
in interface StepDefinition
retryLimit
- - an integer retry limitpublic java.lang.Integer getBatchSize()
StepDefinition
getBatchSize
in interface StepDefinition
public void setBatchSize(java.lang.Integer batchSize)
StepDefinition
setBatchSize
in interface StepDefinition
batchSize
- - an integerpublic java.lang.Integer getThreadCount()
StepDefinition
getThreadCount
in interface StepDefinition
public void setThreadCount(java.lang.Integer threadCount)
StepDefinition
setThreadCount
in interface StepDefinition
threadCount
- - an integerpublic void incrementVersion()
StepDefinition
incrementVersion
in interface StepDefinition
public void deserialize(com.fasterxml.jackson.databind.JsonNode json)
StepDefinition
deserialize
in interface StepDefinition
json
- - the JsonNode you want deserializepublic Step transformToStep(java.lang.String stepName, StepDefinition stepDefinition, Step step)
transformToStep
in interface StepDefinition
stepName
- name of the stepstepDefinition
- step definition object to transform fromstep
- step object to be transformedpublic StepDefinition transformFromStep(StepDefinition stepDefinition, Step step)
transformFromStep
in interface StepDefinition
stepDefinition
- step definition to be transformedstep
- step object to transform from