public class GenericFileRenameProcessStrategy<T> extends GenericFileProcessStrategySupport<T>
camelContext, exclusiveReadLockStrategy
Constructor and Description |
---|
GenericFileRenameProcessStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
org.apache.camel.Exchange exchange,
GenericFile<T> file)
Called when work is about to begin on this file.
|
void |
commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
org.apache.camel.Exchange exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after successful processing
|
GenericFileRenamer<T> |
getBeginRenamer() |
GenericFileRenamer<T> |
getCommitRenamer() |
GenericFileRenamer<T> |
getFailureRenamer() |
void |
rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
org.apache.camel.Exchange exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after unsuccessful processing
|
void |
setBeginRenamer(GenericFileRenamer<T> beginRenamer) |
void |
setCommitRenamer(GenericFileRenamer<T> commitRenamer) |
void |
setFailureRenamer(GenericFileRenamer<T> failureRenamer) |
abort, deleteLocalWorkFile, doShutdown, doStart, doStop, getCamelContext, getExclusiveReadLockStrategy, prepareOnStartup, renameFile, setCamelContext, setExclusiveReadLockStrategy
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) throws Exception
GenericFileProcessStrategy
begin
in interface GenericFileProcessStrategy<T>
begin
in class GenericFileProcessStrategySupport<T>
operations
- file operationsendpoint
- the endpointexchange
- the exchangefile
- the fileException
- can be thrown in case of errorspublic void rollback(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) throws Exception
GenericFileProcessStrategy
rollback
in interface GenericFileProcessStrategy<T>
rollback
in class GenericFileProcessStrategySupport<T>
operations
- file operationsendpoint
- the endpointexchange
- the exchangefile
- the fileException
- can be thrown in case of errorspublic void commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) throws Exception
GenericFileProcessStrategy
commit
in interface GenericFileProcessStrategy<T>
commit
in class GenericFileProcessStrategySupport<T>
operations
- file operationsendpoint
- the endpointexchange
- the exchangefile
- the fileException
- can be thrown in case of errorspublic GenericFileRenamer<T> getBeginRenamer()
public void setBeginRenamer(GenericFileRenamer<T> beginRenamer)
public GenericFileRenamer<T> getCommitRenamer()
public void setCommitRenamer(GenericFileRenamer<T> commitRenamer)
public GenericFileRenamer<T> getFailureRenamer()
public void setFailureRenamer(GenericFileRenamer<T> failureRenamer)
Apache Camel