Package com.redis.riot.core
Class AbstractJobCommand
java.lang.Object
com.redis.riot.core.BaseCommand
com.redis.riot.core.AbstractCallableCommand
com.redis.riot.core.AbstractJobCommand
-
Field Summary
FieldsFields inherited from class com.redis.riot.core.AbstractCallableCommand
log
Fields inherited from class com.redis.riot.core.BaseCommand
commandSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureAsyncReader
(com.redis.spring.batch.item.AbstractAsyncItemReader<?, ?> reader) protected void
execute()
org.springframework.batch.core.launch.JobLauncher
org.springframework.batch.core.repository.JobRepository
org.springframework.transaction.PlatformTransactionManager
protected abstract org.springframework.batch.core.Job
job()
protected org.springframework.batch.core.Job
protected org.springframework.batch.core.Job
job
(Collection<Step<?, ?>> steps) 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.AbstractCallableCommand
call, getLog, setLog
-
Field Details
-
DEFAULT_JOB_REPOSITORY_NAME
- See Also:
-
-
Constructor Details
-
AbstractJobCommand
public AbstractJobCommand()
-
-
Method Details
-
configureAsyncReader
protected void configureAsyncReader(com.redis.spring.batch.item.AbstractAsyncItemReader<?, ?> reader) -
execute
- Specified by:
execute
in classAbstractCallableCommand
- Throws:
Exception
-
job
-
job
-
shouldShowProgress
protected boolean shouldShowProgress() -
job
protected abstract org.springframework.batch.core.Job 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)
-