org.sca4j.binding.file.runtime
Class FileServiceInvoker

java.lang.Object
  extended by org.sca4j.binding.file.runtime.FileServiceInvoker

public class FileServiceInvoker
extends java.lang.Object

Invokes the service bound to file binding.

Author:
dhillonn

Constructor Summary
FileServiceInvoker(org.sca4j.spi.wire.Interceptor interceptor, FileBindingMonitor monitor)
          Constructor with mandatory parameters
 
Method Summary
 void invoke(java.io.File file, java.io.File archiveFile, boolean acquireLock)
          Read the file from file system and pass it to the bound service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileServiceInvoker

public FileServiceInvoker(org.sca4j.spi.wire.Interceptor interceptor,
                          FileBindingMonitor monitor)
Constructor with mandatory parameters

Parameters:
interceptor - service interceptor
monitor - monitor to log the events
Method Detail

invoke

public void invoke(java.io.File file,
                   java.io.File archiveFile,
                   boolean acquireLock)
            throws java.io.IOException
Read the file from file system and pass it to the bound service.

Parameters:
file - file to be read
archiveFile - directory where file to be archived after it's read
acquireLock - flag to indicate if lock must be acquired before reading the file
Throws:
java.io.IOException


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