public class SyncWatchEventProcessor
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
SyncWatchEventProcessor(long syncAccountId) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFile(SyncWatchEvent syncWatchEvent) |
protected void |
addFolder(SyncWatchEvent syncWatchEvent) |
protected void |
deleteFile(SyncWatchEvent syncWatchEvent) |
protected void |
doRun() |
protected boolean |
isInErrorState(java.nio.file.Path filePath) |
boolean |
isInProgress() |
protected boolean |
isPendingTypePK(SyncFile syncFile) |
protected void |
modifyFile(SyncWatchEvent syncWatchEvent) |
protected void |
moveFile(SyncWatchEvent syncWatchEvent) |
protected void |
processSyncWatchEvent(SyncWatchEvent syncWatchEvent) |
protected void |
queueSyncWatchEvent(java.lang.String parentFilePathName,
SyncWatchEvent syncWatchEvent) |
protected void |
renameFile(SyncWatchEvent syncWatchEvent) |
void |
run() |
protected boolean |
sanitizeFileName(java.nio.file.Path filePath) |
protected boolean |
verifySite(SyncFile syncFile,
SyncFile parentSyncFile) |
public boolean isInProgress()
public void run()
run
in interface java.lang.Runnable
protected void addFile(SyncWatchEvent syncWatchEvent) throws java.lang.Exception
java.lang.Exception
protected void addFolder(SyncWatchEvent syncWatchEvent) throws java.lang.Exception
java.lang.Exception
protected void deleteFile(SyncWatchEvent syncWatchEvent) throws java.lang.Exception
java.lang.Exception
protected void doRun() throws java.lang.Exception
java.lang.Exception
protected boolean isInErrorState(java.nio.file.Path filePath)
protected boolean isPendingTypePK(SyncFile syncFile)
protected void modifyFile(SyncWatchEvent syncWatchEvent) throws java.lang.Exception
java.lang.Exception
protected void moveFile(SyncWatchEvent syncWatchEvent) throws java.lang.Exception
java.lang.Exception
protected void processSyncWatchEvent(SyncWatchEvent syncWatchEvent) throws java.lang.Exception
java.lang.Exception
protected void queueSyncWatchEvent(java.lang.String parentFilePathName, SyncWatchEvent syncWatchEvent)
protected void renameFile(SyncWatchEvent syncWatchEvent) throws java.lang.Exception
java.lang.Exception
protected boolean sanitizeFileName(java.nio.file.Path filePath)