@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,
EventLog eventLog) |
| 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, EventLog eventLog)
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 SnapshotJobManagerSnapshotException@Transactional public void cancelSnapshot(String snapshotId) throws SnapshotException
cancelSnapshot in interface SnapshotJobManagerSnapshotException@Transactional public Restoration stopRestore(String restoreId) throws SnapshotException
stopRestore in interface SnapshotJobManagerSnapshotException@Transactional public 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–2017 DuraSpace. All rights reserved.