@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,
StoreClientHelper storeClientHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelSnapshot(String snapshotId) |
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) |
protected void |
init(SnapshotJobManagerConfig config,
boolean attemptRestart) |
boolean |
isInitialized() |
@Autowired public SnapshotJobManagerImpl(SnapshotRepo snapshotRepo, RestoreRepo restoreRepo, org.springframework.batch.core.launch.JobLauncher jobLauncher, org.springframework.batch.core.repository.JobRepository jobRepository, BatchJobBuilderManager manager, StoreClientHelper storeClientHelper)
public void init(SnapshotJobManagerConfig config) throws AlreadyInitializedException
init in interface SnapshotJobManagerAlreadyInitializedExceptionprotected void init(SnapshotJobManagerConfig config, boolean attemptRestart) throws AlreadyInitializedException
AlreadyInitializedExceptionpublic boolean isInitialized()
isInitialized 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 SnapshotJobManagerSnapshotExceptioncancelSnapshot 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.