public class ExceptionCatchingPathAlterationListenerDecorator extends Object implements PathAlterationListener, Decorator
PathAlterationListener that catches and logs any exception thrown by the underlying listener,
preventing it from failing the application.| Constructor and Description |
|---|
ExceptionCatchingPathAlterationListenerDecorator() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getDecoratedObject() |
void |
onDirectoryChange(org.apache.hadoop.fs.Path directory) |
void |
onDirectoryCreate(org.apache.hadoop.fs.Path directory) |
void |
onDirectoryDelete(org.apache.hadoop.fs.Path directory) |
void |
onFileChange(org.apache.hadoop.fs.Path path) |
void |
onFileCreate(org.apache.hadoop.fs.Path path) |
void |
onFileDelete(org.apache.hadoop.fs.Path path) |
void |
onStart(PathAlterationObserver observer) |
void |
onStop(PathAlterationObserver observer) |
public ExceptionCatchingPathAlterationListenerDecorator()
public Object getDecoratedObject()
getDecoratedObject in interface Decoratorpublic void onStart(PathAlterationObserver observer)
onStart in interface PathAlterationListenerpublic void onFileCreate(org.apache.hadoop.fs.Path path)
onFileCreate in interface PathAlterationListenerpublic void onFileChange(org.apache.hadoop.fs.Path path)
onFileChange in interface PathAlterationListenerpublic void onStop(PathAlterationObserver observer)
onStop in interface PathAlterationListenerpublic void onDirectoryCreate(org.apache.hadoop.fs.Path directory)
onDirectoryCreate in interface PathAlterationListenerpublic void onDirectoryChange(org.apache.hadoop.fs.Path directory)
onDirectoryChange in interface PathAlterationListenerpublic void onDirectoryDelete(org.apache.hadoop.fs.Path directory)
onDirectoryDelete in interface PathAlterationListenerpublic void onFileDelete(org.apache.hadoop.fs.Path path)
onFileDelete in interface PathAlterationListener