public class CopyFileEvent extends AbstractTransactionEvent
| Constructor and Description |
|---|
CopyFileEvent(Path source,
Path destination,
List<ChecksumAlgorithm> checksumAlgorithms) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit this event.
|
void |
rollback()
Rollback the even already committed.
|
createBackup, createChecksums, getChecksumAlgorithms, getChecksumFileExtension, mkDirs, restoreBackup, restoreBackups, revertFilesCreated, revertMkDirs, writeStringToFilepublic CopyFileEvent(Path source, Path destination, List<ChecksumAlgorithm> checksumAlgorithms)
source - destination - checksumAlgorithms - The checksum algorithmspublic void commit() throws IOException
TransactionEventIOException - if an error occurred committing the changepublic void rollback() throws IOException
TransactionEventIOException - if an error occurred reverting the changeCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.