@Component(value="syncProcessManager") public class SyncProcessManagerImpl extends Object implements SyncProcessManager
| Constructor and Description |
|---|
SyncProcessManagerImpl(SyncConfigurationManager syncConfigurationManager,
ContentStoreManagerFactory contentStoreManagerFactory,
SyncOptimizeManager syncOptimizeManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSyncStateChangeListener(SyncStateChangeListener syncStateChangeListener) |
protected void |
automaticallyRestartIfAppropriate() |
void |
clearError() |
void |
clearFailures() |
SyncProcessError |
getError() |
List<SyncSummary> |
getFailures() |
List<MonitoredFile> |
getMonitoredFiles()
Returns a list of actively transfering (uploading) files
|
SyncProcessState |
getProcessState()
Returns an enum designating the runtime state of the sync process
|
SyncProcessStats |
getProcessStats()
Returns stats related the sync process
|
List<File> |
getQueuedFiles() |
List<SyncSummary> |
getRecentlyCompleted() |
void |
init() |
void |
pause()
Pauses the sync process.
|
void |
removeSyncStateChangeListener(SyncStateChangeListener syncStateChangeListener) |
void |
restart()
Equivalent to a stop and a restart.
|
void |
resume()
Resumes the sync process from the paused state.
|
void |
shutdown() |
protected void |
sleep() |
void |
start()
Starts the sync process.
|
void |
stop()
Stops the sync process.
|
@Autowired public SyncProcessManagerImpl(SyncConfigurationManager syncConfigurationManager, ContentStoreManagerFactory contentStoreManagerFactory, SyncOptimizeManager syncOptimizeManager)
@PostConstruct public void init()
protected void automaticallyRestartIfAppropriate()
public SyncProcessError getError()
getError in interface SyncProcessManagerpublic void clearError()
clearError in interface SyncProcessManagerpublic void start()
throws SyncProcessException
SyncProcessstart in interface SyncProcessSyncProcessExceptionpublic void resume()
throws SyncProcessException
SyncProcessresume in interface SyncProcessSyncProcessExceptionpublic void stop()
SyncProcessstop in interface SyncProcesspublic void pause()
SyncProcesspause in interface SyncProcesspublic void restart()
SyncProcessrestart in interface SyncProcesspublic SyncProcessState getProcessState()
SyncProcessgetProcessState in interface SyncProcesspublic SyncProcessStats getProcessStats()
SyncProcessgetProcessStats in interface SyncProcesspublic void addSyncStateChangeListener(SyncStateChangeListener syncStateChangeListener)
addSyncStateChangeListener in interface SyncProcessManagerpublic void removeSyncStateChangeListener(SyncStateChangeListener syncStateChangeListener)
removeSyncStateChangeListener in interface SyncProcessManagerprotected void sleep()
public List<MonitoredFile> getMonitoredFiles()
SyncProcessManagergetMonitoredFiles in interface SyncProcessManagerpublic List<SyncSummary> getFailures()
getFailures in interface SyncProcessManagerpublic List<SyncSummary> getRecentlyCompleted()
getRecentlyCompleted in interface SyncProcessManagerpublic List<File> getQueuedFiles()
getQueuedFiles in interface SyncProcessManagerpublic void clearFailures()
clearFailures in interface SyncProcessManager@PreDestroy public void shutdown()
Copyright © 2009–2018 DuraSpace. All rights reserved.