Package alluxio

Class SyncInfo


  • public class SyncInfo
    extends java.lang.Object
    This class is used to represent what the active syncing process should sync.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long INVALID_TXID  
    • Constructor Summary

      Constructors 
      Constructor Description
      SyncInfo​(java.util.Map<AlluxioURI,​java.util.Set<AlluxioURI>> changedFiles, boolean forceSync, long txId)
      Constructs a SyncInfo.
    • Constructor Detail

      • SyncInfo

        public SyncInfo​(java.util.Map<AlluxioURI,​java.util.Set<AlluxioURI>> changedFiles,
                        boolean forceSync,
                        long txId)
        Constructs a SyncInfo.
        Parameters:
        changedFiles - a map mapping syncpoint to changed files
        forceSync - force sync the entire directory
        txId - the transaction id that is synced in this sync
    • Method Detail

      • emptyInfo

        public static SyncInfo emptyInfo()
        Returns an empty SyncInfo object.
        Returns:
        emptyInfo object
      • getSyncPoints

        public java.util.Set<AlluxioURI> getSyncPoints()
        Returns a list of sync points.
        Returns:
        a list of sync points
      • getChangedFiles

        public java.util.Set<AlluxioURI> getChangedFiles​(AlluxioURI syncPoint)
        REturns a set of changed files.
        Parameters:
        syncPoint - the syncPoint that we are monitoring
        Returns:
        a set of sync points
      • isForceSync

        public boolean isForceSync()
        returns true if this sync should happen on the entire directory.
        Returns:
        true if this sync should happen on the entire dir
      • getTxId

        public long getTxId()
        returns the transaction id that is synced in this sync period.
        Returns:
        a transaction id that is synced in this sync period