Package com.redis.riot
Class AbstractTransferCommand
- java.lang.Object
-
- com.redis.riot.HelpCommand
-
- com.redis.riot.AbstractRiotCommand
-
- com.redis.riot.AbstractTransferCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
- Direct Known Subclasses:
AbstractExportCommand
,AbstractImportCommand
public abstract class AbstractTransferCommand extends AbstractRiotCommand
-
-
Field Summary
Fields Modifier and Type Field Description protected TransferOptions
transferOptions
-
Constructor Summary
Constructors Constructor Description AbstractTransferCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <I,O>
org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>chunk(java.lang.String name, int chunkSize)
protected com.redis.spring.batch.RedisScanSizeEstimator.Builder
estimator()
protected <I,O>
org.springframework.batch.core.step.builder.FaultTolerantStepBuilder<I,O>faultTolerant(org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O> step)
protected <K,V>
com.redis.spring.batch.RedisItemReader.Builder<K,V>reader(RedisOptions redisOptions, io.lettuce.core.codec.RedisCodec<K,V> codec)
<I,O>
org.springframework.batch.core.step.builder.FaultTolerantStepBuilder<I,O>step(RiotStep<I,O> riotStep)
protected com.redis.spring.batch.RedisItemReader.Builder<java.lang.String,java.lang.String>
stringReader(RedisOptions redisOptions)
protected <K,V>
com.redis.spring.batch.RedisItemWriter.OperationBuilder<K,V>writer(RedisOptions redisOptions, io.lettuce.core.codec.RedisCodec<K,V> codec)
-
Methods inherited from class com.redis.riot.AbstractRiotCommand
call, configureJob, configureJobRepository, execute, getJobRunner, getRedisOptions, job, setApp
-
-
-
-
Field Detail
-
transferOptions
protected TransferOptions transferOptions
-
-
Method Detail
-
stringReader
protected com.redis.spring.batch.RedisItemReader.Builder<java.lang.String,java.lang.String> stringReader(RedisOptions redisOptions)
-
reader
protected <K,V> com.redis.spring.batch.RedisItemReader.Builder<K,V> reader(RedisOptions redisOptions, io.lettuce.core.codec.RedisCodec<K,V> codec)
-
writer
protected <K,V> com.redis.spring.batch.RedisItemWriter.OperationBuilder<K,V> writer(RedisOptions redisOptions, io.lettuce.core.codec.RedisCodec<K,V> codec)
-
estimator
protected com.redis.spring.batch.RedisScanSizeEstimator.Builder estimator()
-
step
public <I,O> org.springframework.batch.core.step.builder.FaultTolerantStepBuilder<I,O> step(RiotStep<I,O> riotStep) throws java.lang.Exception
- Throws:
java.lang.Exception
-
chunk
protected <I,O> org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O> chunk(java.lang.String name, int chunkSize) throws java.lang.Exception
- Throws:
java.lang.Exception
-
faultTolerant
protected <I,O> org.springframework.batch.core.step.builder.FaultTolerantStepBuilder<I,O> faultTolerant(org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O> step)
-
-