@Component public class SnapshotJobManagerImpl extends Object implements SnapshotJobManager
SnapshotJobManager interface.
Uses spring-batch componentry.JOB_LAUNCHER_KEY, JOB_REPOSITORY_KEY| Constructor and Description |
|---|
SnapshotJobManagerImpl(SnapshotRepo snapshotRepo,
RestoreRepo restoreRepo,
org.springframework.batch.core.launch.JobLauncher jobLauncher,
org.springframework.batch.core.repository.JobRepository jobRepository,
BatchJobBuilderManager manager) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.core.BatchStatus |
executeRestoration(String restorationId) |
org.springframework.batch.core.BatchStatus |
executeSnapshot(String snapshotId) |
org.springframework.batch.core.BatchStatus |
getStatus(String snapshotId) |
void |
init(SnapshotJobManagerConfig config) |
@Autowired public SnapshotJobManagerImpl(SnapshotRepo snapshotRepo, RestoreRepo restoreRepo, org.springframework.batch.core.launch.JobLauncher jobLauncher, org.springframework.batch.core.repository.JobRepository jobRepository, BatchJobBuilderManager manager)
public void init(SnapshotJobManagerConfig config)
init in interface SnapshotJobManagerpublic org.springframework.batch.core.BatchStatus executeRestoration(String restorationId) throws SnapshotException
executeRestoration in interface SnapshotJobManagerSnapshotExceptionpublic org.springframework.batch.core.BatchStatus executeSnapshot(String snapshotId) throws SnapshotException
executeSnapshot in interface SnapshotJobManagerSnapshotExceptionpublic org.springframework.batch.core.BatchStatus getStatus(String snapshotId) throws com.amazonaws.services.elasticache.model.SnapshotNotFoundException, SnapshotException
getStatus in interface SnapshotJobManagercom.amazonaws.services.elasticache.model.SnapshotNotFoundExceptionSnapshotExceptionCopyright © 2014–2015 DuraSpace. All rights reserved.