|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GenericFileProcessStrategy<T>
Represents a strategy for marking that a remote file is processed.
| Method Summary | |
|---|---|
boolean |
begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
GenericFileExchange<T> exchange,
GenericFile<T> file)
Called when work is about to begin on this file. |
void |
commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
GenericFileExchange<T> exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after successful processing |
void |
rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
GenericFileExchange<T> exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after unsuccessful processing |
| Method Detail |
|---|
boolean begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
GenericFileExchange<T> exchange,
GenericFile<T> file)
throws Exception
operations - ftp operationsendpoint - the endpointexchange - the exchangefile - the remote file
Exception - can be thrown in case of errors
void commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
GenericFileExchange<T> exchange,
GenericFile<T> file)
throws Exception
operations - ftp operationsendpoint - the endpointexchange - the exchangefile - the remote file
Exception - can be thrown in case of errors
void rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
GenericFileExchange<T> exchange,
GenericFile<T> file)
throws Exception
operations - ftp operationsendpoint - the endpointexchange - the exchangefile - the remote file
Exception - can be thrown in case of errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||