Package com.redis.riot.core
Class AbstractJobCommand
java.lang.Object
com.redis.riot.core.BaseCommand
com.redis.riot.core.AbstractCommand
com.redis.riot.core.AbstractJobCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected org.springframework.batch.core.launch.JobLauncher
protected String
protected org.springframework.batch.core.repository.JobRepository
protected org.springframework.transaction.PlatformTransactionManager
Fields 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 TypeMethodDescriptionvoid
protected void
configure
(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
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
protected abstract void
shutdown()
Methods inherited from class com.redis.riot.core.AbstractCommand
call, getLog, getLoggingArgs, setLog, setLoggingArgs
-
Field Details
-
DEFAULT_JOB_REPOSITORY_NAME
- See Also:
-
jobName
-
jobRepository
protected org.springframework.batch.core.repository.JobRepository jobRepository -
transactionManager
protected org.springframework.transaction.PlatformTransactionManager transactionManager -
jobLauncher
protected org.springframework.batch.core.launch.JobLauncher jobLauncher
-
-
Constructor Details
-
AbstractJobCommand
public AbstractJobCommand()
-
-
Method Details
-
job
-
job
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classAbstractCommand
- Throws:
Exception
-
execute
protected void execute()- Specified by:
execute
in classAbstractCommand
-
shutdown
protected abstract void shutdown() -
shouldShowProgress
protected boolean shouldShowProgress() -
job
protected abstract org.springframework.batch.core.Job job() -
configure
protected void configure(com.redis.spring.batch.item.AbstractAsyncItemReader<?, ?> reader) -
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)
-