|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileBindingMonitor
Monitor interface to log significant events for File binding.
| Method Summary | |
|---|---|
void |
endpointLockAttempted(java.io.File endpoint,
boolean lockAquired)
Log the event of endpoint lock attempt event |
void |
endpointLockReleased(java.io.File endpoint)
Log the event of endpoint lock released |
void |
fileArchived(java.io.File file,
java.io.File archiveDir)
Log when file successfully archived |
void |
fileDeleted(java.io.File file)
Log when file successfully deleted |
void |
fileExtensionStarted(java.io.File endpoint,
boolean acquireFileLock,
boolean acquireEndpointLock)
Log the event of file extension started |
void |
fileSkipped(java.lang.String fileName)
Log the event when file is skipped during the polling |
void |
onException(java.lang.String msg,
java.lang.Throwable throwable)
Log the exception |
void |
unableToAcquireLock(java.lang.String fileName)
Log the warning when unable to acquire the lock before reading the file |
void |
unableToArchive(java.io.File file,
java.io.File archiveDir)
Log the error when not able to move the file to archive directory |
void |
unableToDelete(java.io.File file)
Log the error when not able to delete the source file |
| Method Detail |
|---|
void fileExtensionStarted(java.io.File endpoint,
boolean acquireFileLock,
boolean acquireEndpointLock)
void onException(java.lang.String msg,
java.lang.Throwable throwable)
msg - error messagethrowable - cause
void unableToArchive(java.io.File file,
java.io.File archiveDir)
file - archiveDir - void unableToDelete(java.io.File file)
file - void unableToAcquireLock(java.lang.String fileName)
fileName - void fileDeleted(java.io.File file)
file -
void fileArchived(java.io.File file,
java.io.File archiveDir)
file - archiveDir - void fileSkipped(java.lang.String fileName)
fileName -
void endpointLockAttempted(java.io.File endpoint,
boolean lockAquired)
endpoint - file endpointlockAquired - flag to indicate if lock is acquired or notvoid endpointLockReleased(java.io.File endpoint)
endpoint -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||