public class SynchEngineImpl extends Object implements SyncEngine
| Modifier and Type | Method and Description |
|---|---|
SyncFolderDescriptor |
check(String folderId,
boolean recursively) |
ProcessDescriptor |
doSync(String folderId) |
void |
forceUnlock(String folderId) |
static SyncEngine |
get() |
Set<CatalogBean> |
getAvailableCatalogsByToken(String token) |
SynchronizedElementInfo |
getInfo(String elementId) |
ProcessDescriptor |
getProcessDescriptorByFolderId(String folderId) |
ProcessStatus |
getProcessStatusByFolderId(String folderId) |
String |
getRequestLoggerPath() |
SyncEngineStatusDescriptor |
getStatus() |
boolean |
isRequestLoggerEnabled() |
void |
registerCallBack(String folderId,
SyncOperationCallBack callback) |
void |
setRequestLogger(String path) |
void |
setSynchronizedFolder(SynchFolderConfiguration config,
String folderId) |
void |
shutDown() |
void |
stopSynch(String folderId) |
void |
unsetSynchronizedFolder(String folderId,
boolean deleteRemoteContent) |
void |
updateCatalogFile(String folderId,
File toUpdate) |
public static SyncEngine get()
get in interface SyncEnginepublic void setRequestLogger(String path)
setRequestLogger in interface SyncEnginepublic boolean isRequestLoggerEnabled()
isRequestLoggerEnabled in interface SyncEnginepublic String getRequestLoggerPath()
getRequestLoggerPath in interface SyncEnginepublic SyncFolderDescriptor check(String folderId, boolean recursively) throws WorkspaceInteractionException, InternalException
check in interface SyncEngineWorkspaceInteractionExceptionInternalExceptionpublic void registerCallBack(String folderId, SyncOperationCallBack callback) throws ProcessNotFoundException
registerCallBack in interface SyncEngineProcessNotFoundExceptionpublic ProcessDescriptor doSync(String folderId) throws WorkspaceInteractionException, InternalException
doSync in interface SyncEngineWorkspaceInteractionExceptionInternalExceptionpublic void stopSynch(String folderId) throws ProcessNotFoundException
stopSynch in interface SyncEngineProcessNotFoundExceptionpublic void setSynchronizedFolder(SynchFolderConfiguration config, String folderId) throws WorkspaceInteractionException, InternalException
setSynchronizedFolder in interface SyncEngineWorkspaceInteractionExceptionInternalExceptionpublic void unsetSynchronizedFolder(String folderId, boolean deleteRemoteContent) throws WorkspaceInteractionException, InternalException
unsetSynchronizedFolder in interface SyncEngineWorkspaceInteractionExceptionInternalExceptionpublic SynchronizedElementInfo getInfo(String elementId)
getInfo in interface SyncEnginepublic void updateCatalogFile(String folderId, File toUpdate) throws InternalException
updateCatalogFile in interface SyncEngineInternalExceptionpublic void shutDown()
shutDown in interface SyncEnginepublic void forceUnlock(String folderId) throws InternalException, WorkspaceInteractionException
forceUnlock in interface SyncEngineInternalExceptionWorkspaceInteractionExceptionpublic ProcessDescriptor getProcessDescriptorByFolderId(String folderId) throws ProcessNotFoundException
getProcessDescriptorByFolderId in interface SyncEngineProcessNotFoundExceptionpublic ProcessStatus getProcessStatusByFolderId(String folderId) throws ProcessNotFoundException
getProcessStatusByFolderId in interface SyncEngineProcessNotFoundExceptionpublic Set<CatalogBean> getAvailableCatalogsByToken(String token) throws InternalException
getAvailableCatalogsByToken in interface SyncEngineInternalExceptionpublic SyncEngineStatusDescriptor getStatus()
getStatus in interface SyncEngineCopyright © 2021. All Rights Reserved.