Interface FileSync
- All Superinterfaces:
ContentSync, TxnComponent
- All Known Implementing Classes:
FileSyncImpl
Interface for tracking changes to a file.
Any change results in a copy of the original file; conversely, changes are NOT tracked on the level of byte ranges.
Upon syncing, the original (old) file is replaced with the new one. This operation should use atomic move if supported.
-
Method Summary
Modifier and TypeMethodDescriptionGet the path to file with the current content - can be the original file or the temp fileGet the file that represents the new contentGet the path to the file that contains the original contentGet the path to the file affected by the syncMethods inherited from interface ContentSync
exists, getLastModifiedTime, markForDeletion, newOutputStreamToNewTmpContent, openCurrentContent, putContentMethods inherited from interface TxnComponent
finalizeCommit, preCommit, rollback
-
Method Details
-
getTargetFile
Path getTargetFile()Get the path to the file affected by the sync -
getOldContentPath
Path getOldContentPath()Get the path to the file that contains the original content -
getCurrentPath
Path getCurrentPath()Get the path to file with the current content - can be the original file or the temp file -
getNewContentTmpFile
Path getNewContentTmpFile()Get the file that represents the new content
-