@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 |
cancelRestore(String restoreId) |
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() |
Restoration |
stopRestore(String restoreId) |
@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 SnapshotJobManagerSnapshotExceptionpublic void cancelSnapshot(String snapshotId) throws SnapshotException
cancelSnapshot in interface SnapshotJobManagerSnapshotExceptionpublic Restoration stopRestore(String restoreId) throws SnapshotException
stopRestore in interface SnapshotJobManagerSnapshotExceptionpublic void cancelRestore(String restoreId) throws SnapshotException
cancelRestore in interface SnapshotJobManagerSnapshotExceptionpublic org.springframework.batch.core.BatchStatus getStatus(String snapshotId) throws SnapshotNotFoundException, SnapshotException
getStatus in interface SnapshotJobManagerSnapshotNotFoundExceptionSnapshotExceptionCopyright © 2014–2016 DuraSpace. All rights reserved.