Package com.redis.riot.core
Class AbstractJobCommand<C extends JobExecutionContext>
java.lang.Object
com.redis.riot.core.BaseCommand
com.redis.riot.core.AbstractCommand<C>
com.redis.riot.core.AbstractJobCommand<C>
-
Field Summary
FieldsFields inherited from class com.redis.riot.core.AbstractCommand
log
Fields inherited from class com.redis.riot.core.BaseCommand
commandSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected C
org.springframework.batch.core.launch.JobLauncher
org.springframework.batch.core.repository.JobRepository
org.springframework.transaction.PlatformTransactionManager
protected abstract org.springframework.batch.core.Job
protected org.springframework.batch.core.Job
protected org.springframework.batch.core.Job
job
(C context, Collection<Step<?, ?>> steps) protected abstract C
void
setJobArgs
(StepArgs args) void
setJobLauncher
(org.springframework.batch.core.launch.JobLauncher jobLauncher) void
setJobName
(String name) void
setJobRepository
(org.springframework.batch.core.repository.JobRepository jobRepository) void
setJobRepositoryName
(String jobRepositoryName) void
setTransactionManager
(org.springframework.transaction.PlatformTransactionManager transactionManager) protected boolean
Methods inherited from class com.redis.riot.core.AbstractCommand
call, getLog, getLoggingArgs, logLevel, setLog, setLoggingArgs
-
Field Details
-
DEFAULT_JOB_REPOSITORY_NAME
- See Also:
-
-
Constructor Details
-
AbstractJobCommand
public AbstractJobCommand()
-
-
Method Details
-
executionContext
- Specified by:
executionContext
in classAbstractCommand<C extends JobExecutionContext>
-
newExecutionContext
-
execute
- Specified by:
execute
in classAbstractCommand<C extends JobExecutionContext>
-
job
-
job
-
shouldShowProgress
protected boolean shouldShowProgress() -
job
-
getJobName
-
setJobName
-
getJobArgs
-
setJobArgs
-
getJobRepositoryName
-
setJobRepositoryName
-
getJobRepository
public org.springframework.batch.core.repository.JobRepository getJobRepository() -
setJobRepository
public void setJobRepository(org.springframework.batch.core.repository.JobRepository jobRepository) -
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager() -
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) -
getJobLauncher
public org.springframework.batch.core.launch.JobLauncher getJobLauncher() -
setJobLauncher
public void setJobLauncher(org.springframework.batch.core.launch.JobLauncher jobLauncher)
-