org.sca4j.binding.file.runtime
Interface FileBindingMonitor


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

fileExtensionStarted

void fileExtensionStarted(java.io.File endpoint,
                          boolean acquireFileLock,
                          boolean acquireEndpointLock)
Log the event of file extension started


onException

void onException(java.lang.String msg,
                 java.lang.Throwable throwable)
Log the exception

Parameters:
msg - error message
throwable - cause

unableToArchive

void unableToArchive(java.io.File file,
                     java.io.File archiveDir)
Log the error when not able to move the file to archive directory

Parameters:
file -
archiveDir -

unableToDelete

void unableToDelete(java.io.File file)
Log the error when not able to delete the source file

Parameters:
file -

unableToAcquireLock

void unableToAcquireLock(java.lang.String fileName)
Log the warning when unable to acquire the lock before reading the file

Parameters:
fileName -

fileDeleted

void fileDeleted(java.io.File file)
Log when file successfully deleted

Parameters:
file -

fileArchived

void fileArchived(java.io.File file,
                  java.io.File archiveDir)
Log when file successfully archived

Parameters:
file -
archiveDir -

fileSkipped

void fileSkipped(java.lang.String fileName)
Log the event when file is skipped during the polling

Parameters:
fileName -

endpointLockAttempted

void endpointLockAttempted(java.io.File endpoint,
                           boolean lockAquired)
Log the event of endpoint lock attempt event

Parameters:
endpoint - file endpoint
lockAquired - flag to indicate if lock is acquired or not

endpointLockReleased

void endpointLockReleased(java.io.File endpoint)
Log the event of endpoint lock released

Parameters:
endpoint -


Copyright © 2008-2011 Service Symphony. All Rights Reserved.