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 FilesystemAlterationListener
public void onDirectoryChange(File pDir)
onDirectoryChange
in interface FilesystemAlterationListener
public void onDirectoryDelete(File pDir)
onDirectoryDelete
in interface FilesystemAlterationListener
public void onFileCreate(File pFile)
onFileCreate
in interface FilesystemAlterationListener
public void onFileChange(File pFile)
onFileChange
in interface FilesystemAlterationListener
public void onFileDelete(File pFile)
onFileDelete
in interface FilesystemAlterationListener
public 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 FilesystemAlterationListener
public void onStop(FilesystemAlterationObserver pObserver)
onStop
in interface FilesystemAlterationListener
public void waitForFirstCheck() throws Exception
Exception
- in case of a timeoutCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.