public class CreateFileEvent extends AbstractTransactionEvent
Constructor and Description |
---|
CreateFileEvent(String content,
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, writeStringToFile
public CreateFileEvent(String content, Path destination, List<ChecksumAlgorithm> checksumAlgorithms)
content
- destination
- checksumAlgorithms
- digesters to use for checksummingpublic void commit() throws IOException
TransactionEvent
IOException
- if an error occurred committing the changepublic void rollback() throws IOException
TransactionEvent
IOException
- if an error occurred reverting the changeCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.