org.apache.camel.component.file.strategy
Class RenameFileProcessStrategy

java.lang.Object
  extended by org.apache.camel.component.file.strategy.FileProcessStrategySupport
      extended by org.apache.camel.component.file.strategy.RenameFileProcessStrategy
All Implemented Interfaces:
FileProcessStrategy

public class RenameFileProcessStrategy
extends FileProcessStrategySupport

A strategy to rename a file

Version:
$Revision: 47012 $

Constructor Summary
RenameFileProcessStrategy()
           
RenameFileProcessStrategy(boolean lock)
           
RenameFileProcessStrategy(boolean lock, FileRenamer renamer)
           
RenameFileProcessStrategy(boolean lock, String namePrefix, String namePostfix)
           
 
Method Summary
 void commit(FileEndpoint endpoint, FileExchange exchange, File file)
          Releases any file locks and possibly deletes or moves the file after successful processing
 FileRenamer getRenamer()
           
 void setRenamer(FileRenamer renamer)
           
 
Methods inherited from class org.apache.camel.component.file.strategy.FileProcessStrategySupport
begin, getLockFileRenamer, isLockFile, rollback, setLockFile, setLockFileRenamer, unlockFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameFileProcessStrategy

public RenameFileProcessStrategy()

RenameFileProcessStrategy

public RenameFileProcessStrategy(boolean lock)

RenameFileProcessStrategy

public RenameFileProcessStrategy(boolean lock,
                                 String namePrefix,
                                 String namePostfix)

RenameFileProcessStrategy

public RenameFileProcessStrategy(boolean lock,
                                 FileRenamer renamer)
Method Detail

commit

public void commit(FileEndpoint endpoint,
                   FileExchange exchange,
                   File file)
            throws Exception
Description copied from interface: FileProcessStrategy
Releases any file locks and possibly deletes or moves the file after successful processing

Specified by:
commit in interface FileProcessStrategy
Overrides:
commit in class FileProcessStrategySupport
Parameters:
endpoint - the endpoint
exchange - the exchange
file - the file
Throws:
Exception - can be thrown in case of errors

getRenamer

public FileRenamer getRenamer()

setRenamer

public void setRenamer(FileRenamer renamer)


Copyright © 2008 IONA Open Source Community. All Rights Reserved.