Package com.redis.riot
Class AbstractRiotCommand
- java.lang.Object
-
- com.redis.riot.HelpCommand
-
- com.redis.riot.AbstractRiotCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
,org.springframework.batch.core.JobExecutionListener
- Direct Known Subclasses:
AbstractTransferCommand
public abstract class AbstractRiotCommand extends HelpCommand implements java.util.concurrent.Callable<java.lang.Integer>, org.springframework.batch.core.JobExecutionListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractRiotCommand.ExecutionStrategy
-
Constructor Summary
Constructors Constructor Description AbstractRiotCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
afterJob(org.springframework.batch.core.JobExecution jobExecution)
void
beforeJob(org.springframework.batch.core.JobExecution jobExecution)
java.lang.Integer
call()
org.springframework.batch.core.JobExecution
execute()
protected org.springframework.batch.core.job.builder.FlowBuilder<org.springframework.batch.core.job.flow.support.SimpleFlow>
flow(java.lang.String name)
protected abstract org.springframework.batch.core.job.flow.Flow
flow(org.springframework.batch.core.configuration.annotation.StepBuilderFactory stepBuilderFactory)
protected org.springframework.batch.core.job.flow.Flow
flow(org.springframework.batch.core.Step... steps)
protected RedisOptions
getRedisOptions()
protected java.lang.String
name(io.lettuce.core.RedisURI redisURI)
-
-
-
Method Detail
-
getRedisOptions
protected RedisOptions getRedisOptions()
-
name
protected java.lang.String name(io.lettuce.core.RedisURI redisURI)
-
flow
protected final org.springframework.batch.core.job.flow.Flow flow(org.springframework.batch.core.Step... steps)
-
flow
protected final org.springframework.batch.core.job.builder.FlowBuilder<org.springframework.batch.core.job.flow.support.SimpleFlow> flow(java.lang.String name)
-
call
public java.lang.Integer call() throws java.lang.Exception
- Specified by:
call
in interfacejava.util.concurrent.Callable<java.lang.Integer>
- Throws:
java.lang.Exception
-
execute
public org.springframework.batch.core.JobExecution execute() throws java.lang.Exception
- Throws:
java.lang.Exception
-
flow
protected abstract org.springframework.batch.core.job.flow.Flow flow(org.springframework.batch.core.configuration.annotation.StepBuilderFactory stepBuilderFactory) throws java.lang.Exception
- Throws:
java.lang.Exception
-
afterJob
public void afterJob(org.springframework.batch.core.JobExecution jobExecution)
- Specified by:
afterJob
in interfaceorg.springframework.batch.core.JobExecutionListener
-
beforeJob
public void beforeJob(org.springframework.batch.core.JobExecution jobExecution)
- Specified by:
beforeJob
in interfaceorg.springframework.batch.core.JobExecutionListener
-
-