public abstract class AbstractFilesystemAlterationListener extends Object implements FilesystemAlterationListener
| Modifier and Type | Field and Description |
|---|---|
protected FilesystemAlterationObserver |
observer |
| Constructor and Description |
|---|
AbstractFilesystemAlterationListener() |
| Modifier and Type | Method and Description |
|---|---|
Collection<File> |
getChangedDirectories() |
Collection<File> |
getChangedFiles() |
Collection<File> |
getCreatedDirectories() |
Collection<File> |
getCreatedFiles() |
Collection<File> |
getDeletedDirectories() |
Collection<File> |
getDeletedFiles() |
void |
onDirectoryChange(File pDir) |
void |
onDirectoryCreate(File pDir) |
void |
onDirectoryDelete(File pDir) |
void |
onFileChange(File pFile) |
void |
onFileCreate(File pFile) |
void |
onFileDelete(File pFile) |
void |
onStart(FilesystemAlterationObserver pObserver) |
void |
onStop(FilesystemAlterationObserver pObserver) |
protected void |
signals() |
void |
waitForCheck()
wait for the next filesystem check to happen
|
void |
waitForEvent() |
void |
waitForFirstCheck()
we don't reset the signal so if there was a check it is
already true and exit immediatly otherwise it will behave just
like waitForCheck()
|
protected FilesystemAlterationObserver observer
public AbstractFilesystemAlterationListener()
public void onDirectoryCreate(File pDir)
onDirectoryCreate in interface FilesystemAlterationListenerpublic void onDirectoryChange(File pDir)
onDirectoryChange in interface FilesystemAlterationListenerpublic void onDirectoryDelete(File pDir)
onDirectoryDelete in interface FilesystemAlterationListenerpublic void onFileCreate(File pFile)
onFileCreate in interface FilesystemAlterationListenerpublic void onFileChange(File pFile)
onFileChange in interface FilesystemAlterationListenerpublic void onFileDelete(File pFile)
onFileDelete in interface FilesystemAlterationListenerpublic Collection<File> getChangedDirectories()
public Collection<File> getChangedFiles()
public Collection<File> getCreatedDirectories()
public Collection<File> getCreatedFiles()
public Collection<File> getDeletedDirectories()
public Collection<File> getDeletedFiles()
protected void signals()
public void onStart(FilesystemAlterationObserver pObserver)
onStart in interface FilesystemAlterationListenerpublic void onStop(FilesystemAlterationObserver pObserver)
onStop in interface FilesystemAlterationListenerpublic void waitForFirstCheck()
throws Exception
Exception - in case of a timeoutCopyright © 2004–2025 The Apache Software Foundation. All rights reserved.