Interface FileSync

All Superinterfaces:
ContentSync, TxnComponent
All Known Implementing Classes:
FileSyncImpl

public interface FileSync extends ContentSync
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 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