public class SparkTasklet
extends java.lang.Object
implements org.springframework.batch.core.step.tasklet.Tasklet, org.springframework.context.EnvironmentAware, org.springframework.batch.core.StepExecutionListener
Tasklet
for running Spark application.Constructor and Description |
---|
SparkTasklet() |
Modifier and Type | Method and Description |
---|---|
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
org.springframework.batch.repeat.RepeatStatus |
execute(org.springframework.batch.core.StepContribution contribution,
org.springframework.batch.core.scope.context.ChunkContext chunkContext) |
java.lang.String |
getAppJar() |
java.lang.String |
getConf() |
java.lang.String |
getFiles() |
java.lang.String |
getMainClass() |
java.lang.String |
getMaster() |
java.lang.String |
getName() |
java.lang.String |
getProgramArgs() |
void |
setAppJar(java.lang.String appJar) |
void |
setConf(java.lang.String conf) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
void |
setFiles(java.lang.String files) |
void |
setMainClass(java.lang.String mainClass) |
void |
setMaster(java.lang.String master) |
void |
setName(java.lang.String name) |
void |
setProgramArgs(java.lang.String programArgs) |
public java.lang.String getMaster()
public void setMaster(java.lang.String master)
public java.lang.String getMainClass()
public void setMainClass(java.lang.String mainClass)
public java.lang.String getAppJar()
public void setAppJar(java.lang.String appJar)
public java.lang.String getProgramArgs()
public void setProgramArgs(java.lang.String programArgs)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getConf()
public void setConf(java.lang.String conf)
public java.lang.String getFiles()
public void setFiles(java.lang.String files)
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.EnvironmentAware
public org.springframework.batch.repeat.RepeatStatus execute(org.springframework.batch.core.StepContribution contribution, org.springframework.batch.core.scope.context.ChunkContext chunkContext) throws java.lang.Exception
execute
in interface org.springframework.batch.core.step.tasklet.Tasklet
java.lang.Exception
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep
in interface org.springframework.batch.core.StepExecutionListener
public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep
in interface org.springframework.batch.core.StepExecutionListener